Question: How many assets does each third party company supply? List the count and the company id.
Schema: create table assets (supplier_company_id varchar, PRIMARY KEY (supplier_company_id)); create table third_party_companies (company_id varchar, PRIMARY KEY (company_id))
SQL: select count(*), t1.company_id from third_party_companies as t1 join assets as t2 on t1.company_id = t2.supplier_company_id group by t1.company_id