how many different headquarter cities are there?
select count(distinct headquarter) from manufacturers
Find the number of different products that are from companies at each headquarter.
select count(distinct t1.name), t2.headquarter from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.headquarter