human
Schema:
airport (id, City, Country, IATA, ICAO, name)
operate_company (id, name, Type, Principal_activities, Incorporated_in, Group_Equity_Shareholding)
flight (id, Vehicle_Flight_number, Date, Pilot, Velocity, Altitude, airport_id, company_id)
Please answer with SQL.
assistant
Sure, I understand.
human
What is the most common type?
assistant
SELECT TYPE FROM operate_company GROUP BY TYPE ORDER BY COUNT( * ) DESC LIMIT 1;
human
And how many companies are there with this type?
assistant
SELECT COUNT( DISTINCT name ) FROM operate_company WHERE Type = "Subsidiary" ;