using my SQL list, for each country, the number of cities. Would you think that this statement means count the number of cities of each country?
+----+----------------+---------+---------------+------------+
| id | name | country | original-name | population |
+----+----------------+---------+---------------+------------+
| 1 | Kabul | AFG | Kabol | 1780000 |
| 2 | Qandahar | AFG | Qandahar | 237500 |
| 3 | Herat | AFG | Herat | 186800 |
| 4 | Mazar-e-Sharif | AFG | Balkh | 127800 |
| 5 | Amsterdam | NLD | Noord-Holland | 731200 |
| 6 | Rotterdam | NLD | Zuid-Holland | 593321 |
| 7 | Haag | NLD | Zuid-Holland | 440900 |
| 8 | Utrecht | NLD | Utrecht | 234323 |
| 9 | Eindhoven | NLD | Noord-Brabant | 201843 |
| 10 | Tilburg | NLD | Noord-Brabant | 193238 |
+----+----------------+---------+---------------+------------+
my code that works but it's over 4000 lines:
SELECT name, country
FROM city
GROUP BY name, country
ORDER BY country ASC;