Question: list the number of unique building ids for each company id
SQL: SELECT T1.company_id,  count ( distinct T1.building_id )  FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id   =   T2.id JOIN Companies AS T3 ON T1.company_id   =   T3.id GROUP BY T1.company_id