human
Schema:
buildings (id, name, City, Height, Stories, Status)
Companies (id, name, Headquarters, Industry, Sales_billion, Profits_billion, Assets_billion, Market_Value_billion)
Office_locations (building_id, company_id, move_in_year)
Please answer with SQL.
assistant
Sure, I understand.
human
How many different industries have companies have headquarters in USA?
assistant
SELECT COUNT( distinct Industry ) FROM companies WHERE Headquarters = 'USA';
human
headquarters in China?
assistant
SELECT COUNT( distinct Industry ) FROM companies WHERE Headquarters = "China" ;