CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);

Question: If a team has a grid of over 8 with less than 4 points, what's the team name?
SQL: SELECT "team" FROM "race" WHERE "grid">8 AND "points"<4;

Question: When Patrick Carpentier is driving and has less than 19 points with 90 laps, what team is racing?
SQL: SELECT "team" FROM "race" WHERE "laps"=90 AND "points"<19 AND "driver"='patrick carpentier';