When a race had less than 18 laps and time/retired of accident, what was the smallest grid?
CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
SELECT MIN("grid") FROM "race" WHERE "time_retired"='accident' AND "laps"<18;