Table 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?
SQL: SELECT home_team FROM table_name_47 WHERE away_team = "swansea city"