tasyāṁ yaḥ kaścaneśvaraḥ

tasyam yah kascanesvarah
sapta-seven; upari-up; krtah-made; dvarah-gates; purah-of the city; tasyah-that; tu-then; dve-two; adhah-down; prthak-different; visaya-to places; gati-artham-for going; tasyam-in that city; yah-one who; kascana-whoever; isvarah-governor.