Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE Office_locations ( building_id VARCHAR, company_id VARCHAR )
TABLE: CREATE TABLE Companies ( name VARCHAR, id VARCHAR )
TABLE: CREATE TABLE buildings ( name VARCHAR, id VARCHAR )

### Question ###
List the name of a building along with the name of a company whose office is in the building.

### Accurate SQL ###

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