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

Question: How many points for Newman/Haas Racing with fewer than 40 laps?
SQL: SELECT AVG("points") FROM "race" WHERE "team"='newman/haas racing' AND "laps"<40;

Question: Which driver has fewer than 2 points, larger grid that 4 and is on American Spirit Team Johansson?
SQL: SELECT "driver" FROM "race" WHERE "points"<2 AND "grid">4 AND "team"='american spirit team johansson';