Database: shop_membership
Question: For each city, how many branches opened before 2010?
SQL:
SELECT city ,  count(*) FROM branch WHERE open_year  <  2010 GROUP BY city