Find the number of cities in each district whose population is greater than the average population of cities?
CREATE TABLE city (District VARCHAR, Population INTEGER)
SELECT COUNT(*), District FROM city WHERE Population > (SELECT AVG(Population) FROM city) GROUP BY District
### Context: CREATE TABLE city (District VARCHAR, Population INTEGER) ### Question: Find the number of cities in each district whose population is greater than the average population of cities? ### Answer: SELECT COUNT(*), District FROM city WHERE Population > (SELECT AVG(Population) FROM city) GROUP BY District