CREATE TABLE "appearances_in_the_tour_de_france" (
  "year" real,
  "stage" real,
  "category" real,
  "start" text,
  "finish" text,
  "leader_at_the_summit" text
);

Question: What is the category for the year when Brioude started and the stage is less than 7?
SQL: SELECT COUNT("category") FROM "appearances_in_the_tour_de_france" WHERE "start"='brioude' AND "stage"<7;

Question: What is the stage number when the category is less than 1?
SQL: SELECT COUNT("stage") FROM "appearances_in_the_tour_de_france" WHERE "category"<1;