CREATE TABLE company (company_id DECIMAL, rank DECIMAL, company TEXT, headquarters TEXT, main_industry TEXT, sales_billion DECIMAL, profits_billion DECIMAL, assets_billion DECIMAL, market_value DECIMAL)
CREATE TABLE station_company (station_id DECIMAL, company_id DECIMAL, rank_of_the_year DECIMAL)
CREATE TABLE gas_station (station_id DECIMAL, open_year DECIMAL, location TEXT, manager_name TEXT, vice_manager_name TEXT, representative_name TEXT)

For each company id, what are the companies and how many gas stations does each one operate?
SELECT T2.company, COUNT(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id
SELECT "T2"."company", COUNT(*) FROM "station_company" AS "T1" JOIN "company" AS "T2" ON "T1"."company_id" = "T2"."company_id" GROUP BY "T1"."company_id"