CREATE TABLE Office_locations (building_id VARCHAR2, company_id VARCHAR2)
CREATE TABLE Companies (name VARCHAR2, id VARCHAR2)
CREATE TABLE buildings (name VARCHAR2, id VARCHAR2)

List the name of a building along with the name of a company whose office is in the building.
SELECT T3.name, T2.name 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
SELECT "T3"."name", "T2"."name" FROM "Office_locations" "T1" JOIN "buildings" "T2" ON "T1"."building_id" = "T2"."id" JOIN "Companies" "T3" ON "T1"."company_id" = "T3"."id"