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

Question: I want the total number of Laps for Rubens Barrichello
SQL: SELECT COUNT("laps") FROM "race" WHERE "driver"='rubens barrichello';

Question: Tell me the driver for grid less than 19 and Laps more than 59 with time/retired of +0.294
SQL: SELECT "driver" FROM "race" WHERE "grid"<19 AND "laps">59 AND "time_retired"='+0.294';