Context: CREATE TABLE airports (city VARCHAR)
Question: How many cities are there that have more than 3 airports?
Answer: SELECT COUNT(*) FROM (SELECT city FROM airports GROUP BY city HAVING COUNT(*) > 3)