Question: Find the number of funiture types produced by each manufacturer as well as the company names.
Schema: create table furniture_manufacte (manufacturer_id varchar, PRIMARY KEY (manufacturer_id)); create table manufacturer (name varchar, manufacturer_id varchar, PRIMARY KEY (name))
SQL: select count(*), t1.name from manufacturer as t1 join furniture_manufacte as t2 on t1.manufacturer_id = t2.manufacturer_id group by t1.manufacturer_id