Database: shop_membership
Question: For each city, count the number of branches opened before 2010
SQL: select city ,  count(*) from branch where open_year  <  2010 group by city