Who was the home team when swansea city was the away team?
CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_47 WHERE away_team = "swansea city"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR) Question: Who was the home team when swansea city was the away team? [/INST] SELECT home_team FROM table_name_47 WHERE away_team = "swansea city" </s>