human
Schema:
Manufacturers (Code, Name, Headquarter, Founder, Revenue)
Products (Code, Name, Price, Manufacturer)
Please answer with SQL.
assistant
Sure, I understand.
human
how many companies are there?
assistant
SELECT COUNT( * ) FROM manufacturers;
human
What is their average revenue?
assistant
SELECT AVG ( revenue ) FROM manufacturers ;