What is the number of the grid when there was a Time/Retired of engine and less than 9 laps?
CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
SELECT SUM("grid") FROM "race" WHERE "time_retired"='engine' AND "laps"<9;