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

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" AS "T1" JOIN "buildings" AS "T2" ON "T1"."building_id" = "T2"."id" JOIN "companies" AS "T3" ON "T1"."company_id" = "T3"."id"