CREATE TABLE manufacturers (code DECIMAL, name TEXT, headquarter TEXT, founder TEXT, revenue DECIMAL)
CREATE TABLE products (code DECIMAL, name TEXT, price DECIMAL, manufacturer DECIMAL)

Find the number of different products that are produced by companies at different headquarter cities.
SELECT COUNT(DISTINCT T1.name), T2.headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.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"