CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);

Question: What is the total number of laps for the time of +7.277 and the grid number of more than 6?
SQL: SELECT SUM("laps") FROM "superbike_race_2_classification" WHERE "time"='+7.277' AND "grid">6;

Question: What is the smallest grid when the time is +8.051 and there were less than 23 laps?
SQL: SELECT MIN("grid") FROM "superbike_race_2_classification" WHERE "time"='+8.051' AND "laps"<23;