SELECT main_industry, COUNT(*) FROM company GROUP BY main_industry ORDER BY SUM(market_value) DESC LIMIT 1
For each main industry, what is the total number of companies for the industry with the highest total market value?
CREATE TABLE gas_station (
    station_id number,
    open_year number,
    location text,
    manager_name text,
    vice_manager_name text,
    representative_name text
)

CREATE TABLE company (
    company_id number,
    rank number,
    company text,
    headquarters text,
    main_industry text,
    sales_billion number,
    profits_billion number,
    assets_billion number,
    market_value number
)

CREATE TABLE station_company (
    station_id number,
    company_id number,
    rank_of_the_year number
)