CREATE TABLE "round_17" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);

Question: Which home team played Hawthorn as the away team?
SQL: SELECT "home_team" FROM "round_17" WHERE "away_team"='hawthorn';

Question: When did Geelong play as the home team?
SQL: SELECT "date" FROM "round_17" WHERE "home_team"='geelong';

Question: Who played as the away team when Essendon was the home team?
SQL: SELECT "away_team" FROM "round_17" WHERE "home_team"='essendon';