CREATE TABLE "a" (
  "rider" text,
  "years_active" text,
  "races" real,
  "wins" real,
  "2nd_pl" real,
  "3rd_pl" real,
  "titles" real
);

Question: What is the total number of 2nd place finishes for riders active in years 2009-2010 and more than 0 wins?
SQL: SELECT SUM("2nd_pl") FROM "a" WHERE "years_active"='2009-2010' AND "wins">0;

Question: What is the total number of 3rd place finishes for racers with 0 titles?
SQL: SELECT SUM("3rd_pl") FROM "a" WHERE "titles"<0;

Question: What is the sum of the number of wins for racers with 0 3rd place finishes?
SQL: SELECT SUM("wins") FROM "a" WHERE "3rd_pl"<0;

Question: What is the average number of 2nd place finishes for racers active in the year 2000 and more than 0 titles?
SQL: SELECT AVG("2nd_pl") FROM "a" WHERE "years_active"='2000' AND "titles">0;