CREATE TABLE gas_station (station_id DECIMAL, open_year DECIMAL, location TEXT, manager_name TEXT, vice_manager_name TEXT, representative_name TEXT)
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)

For each main industry, what is the total number of companies for the industry with the highest total market value?
SELECT main_industry, COUNT(*) FROM company GROUP BY main_industry ORDER BY SUM(market_value) DESC LIMIT 1
SELECT "main_industry", COUNT(*) FROM "company" GROUP BY "main_industry" ORDER BY SUM("market_value") DESC NULLS LAST LIMIT 1