CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR)

Who was the home team when swansea city was the away team?
SELECT home_team FROM table_name_47 WHERE away_team = "swansea city"
SELECT "home_team" FROM "table_name_47" WHERE "away_team" = "swansea city"