CREATE TABLE companies (id NUMBER, name CLOB, headquarters CLOB, industry CLOB, sales_billion NUMBER, profits_billion NUMBER, assets_billion NUMBER, market_value_billion CLOB)
CREATE TABLE office_locations (building_id NUMBER, company_id NUMBER, move_in_year NUMBER)
CREATE TABLE buildings (id NUMBER, name CLOB, city CLOB, height NUMBER, stories NUMBER, status CLOB)

For each company, return the company name and the name of the building its office is located in.
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"