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: What day is richmond the away side?
SQL: SELECT "date" FROM "round_17" WHERE "away_team"='richmond';

Question: Who is the home team when hawthorn is the away team?
SQL: SELECT "home_team" FROM "round_17" WHERE "away_team"='hawthorn';