CREATE TABLE "category_leadership_table" (
  "stage" real,
  "winner" text,
  "general_classification_ta_koszulka" text,
  "mountains_classification_klasyfikacja_g_rska" text,
  "intermediate_sprints_classification_klasyfikacja_najaktywniejszych" text,
  "points_classification_klasyfikacja_punktowa" text,
  "teams_classification" text
);

Question: What was the intermediate sprint classification for the race whose winner was Daniel Martin?
SQL: SELECT "intermediate_sprints_classification_klasyfikacja_najaktywniejszych" FROM "category_leadership_table" WHERE "winner"='Daniel Martin';

Question: Which teams classification winners had a general classification winner of Allan Davis?
SQL: SELECT "teams_classification" FROM "category_leadership_table" WHERE "general_classification_ta_koszulka"='Allan Davis';

Question: Who won the points classification when the teams classification winner was Lampre-Farnese?
SQL: SELECT "points_classification_klasyfikacja_punktowa" FROM "category_leadership_table" WHERE "teams_classification"='Lampre-Farnese';