CREATE TABLE table_8023 ("Tie no" TEXT, "Home team" TEXT, "Score" TEXT, "Away team" TEXT, "Date" TEXT)

Who was the home team when swansea city was the away team?
SELECT "Home team" FROM table_8023 WHERE "Away team" = 'swansea city'
SELECT "Home team" FROM "table_8023" WHERE "Away team" = 'swansea city'