CREATE TABLE "classification_leadership_by_stage" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "combination_classification" text,
  "team_classification" text
);

Question: How many stages were there where the winner and the points classification were Alberto Contador?
SQL: SELECT COUNT("stage") FROM "classification_leadership_by_stage" WHERE "winner"='Alberto Contador' AND "points_classification"='Alberto Contador';

Question: When the winner was Alessandro Ballan, how many total team classifications were there?
SQL: SELECT COUNT("team_classification") FROM "classification_leadership_by_stage" WHERE "winner"='Alessandro Ballan';

Question: When the team classification was quick step, what was the total number of general classifications?
SQL: SELECT COUNT("general_classification") FROM "classification_leadership_by_stage" WHERE "team_classification"='Quick Step';