Practice · Demographics · Easy
Return the top 3 governorates by population, with their population_millions, largest first.
Runs in your browser. No signup needed.
governorates(name, population_millions, area_km2). ORDER BY … DESC then LIMIT 3.
SELECT name, population_millions
FROM governorates
ORDER BY population_millions DESC
LIMIT 3;
The reference solution is checked automatically when you run your query on the practice page — results are compared row by row, and order matters for this one.
Cairo and Giza together hold a huge share of Egypt’s people — the Nile has always concentrated life onto a thin ribbon of land. (CAPMAS)