CREATE TABLE "race_3_results" (
  "name" text,
  "team" text,
  "laps" real,
  "grid" real,
  "points" real
);

Question: What is the highest number of laps when there are less than 5 points for team garry rogers motorsport and the grid number is under 23?
SQL: SELECT MAX("laps") FROM "race_3_results" WHERE "points"<5 AND "team"='garry rogers motorsport' AND "grid"<23;

Question: What is the name of the driver who went 46 laps had less than 9 points and had a grid number under 12?
SQL: SELECT "name" FROM "race_3_results" WHERE "laps"=46 AND "points"<9 AND "grid"<12;