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

Question: What's the average of the amount of laps for the driver patrick tambay?
SQL: SELECT AVG("laps") FROM "race" WHERE "driver"='patrick tambay';

Question: When renault is the constructor, the grid is over 6, and the time was labeled ignition, what's the largest amount of laps on record?
SQL: SELECT MAX("laps") FROM "race" WHERE "grid">6 AND "constructor"='renault' AND "time_retired"='ignition';