CREATE TABLE "by_seasons_and_teams" (
  "season" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real,
  "fastest_laps" real
);

Question: Which Poles has a Wins larger than 0, and a Podiums smaller than 17?
SQL: SELECT "poles" FROM "by_seasons_and_teams" WHERE "wins">0 AND "podiums"<17 AND "fastest_laps"=0;

Question: which Poles has a Fastest Laps of 0, and a Races of 17, and a Wins larger than 0, and a Podiums smaller than 2?
SQL: SELECT MAX("poles") FROM "by_seasons_and_teams" WHERE "fastest_laps"=0 AND "races"=17 AND "wins">0 AND "podiums"<2;

Question: How many Fastest Laps have  Poles of 4, and Races larger than 178?
SQL: SELECT SUM("fastest_laps") FROM "by_seasons_and_teams" WHERE "poles"=4 AND "races">178;

Question: Which the Fastest Lap has a Season of 2009 and Poles smaller than 0?
SQL: SELECT MAX("fastest_laps") FROM "by_seasons_and_teams" WHERE "season"='2009' AND "poles"<0;

Question: Which the Fastest Laps that have  Poles of 0, and a Season of 2002, and a Podiums smaller than 0?
SQL: SELECT AVG("fastest_laps") FROM "by_seasons_and_teams" WHERE "poles"=0 AND "season"='2002' AND "podiums"<0;