CREATE TABLE "stage_results" (
  "date" text,
  "course" text,
  "distance" text,
  "type" text,
  "winner" text
);

Question: Name the course for 24 july
SQL: SELECT "course" FROM "stage_results" WHERE "date"='24 july';

Question: Name the course for team time trial
SQL: SELECT "course" FROM "stage_results" WHERE "type"='team time trial';

Question: Name the winner for rest day for 13 july
SQL: SELECT "winner" FROM "stage_results" WHERE "course"='rest day' AND "date"='13 july';