CREATE TABLE table_name_47 (home_team VARCHAR(255), away_team VARCHAR(255))
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"