CREATE TABLE "by_season" (
  "year" text,
  "class" text,
  "team" text,
  "bike" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real,
  "f_laps" real,
  "points" real
);

Question: How many Poles have a Class of 125cc, and a Team of matteoni racing team, and Points larger than 3?
SQL: SELECT SUM("poles") FROM "by_season" WHERE "class"='125cc' AND "team"='matteoni racing team' AND "points">3;

Question: How many Podiums have a Class of 250cc, and an F laps of 0?
SQL: SELECT SUM("podiums") FROM "by_season" WHERE "class"='250cc' AND "f_laps"=0;