human
Schema:
Manufacturers (Code, Name, Headquarter, Founder, Revenue)
Products (Code, Name, Price, Manufacturer)
Please answer with SQL.
assistant
Sure, I understand.
human
how many products are in the record?
assistant
SELECT COUNT( * ) FROM products;
human
find the number for each manufacturer, showing the name of each company.
assistant
SELECT COUNT( * ) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name ;