Question: add a column for company id
SQL: SELECT count ( * ) , T1.company_id,  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.building_id