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