CREATE TABLE "race_2_results" (
  "name" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);

Question: What team has more than 49 laps and a grid of 8?
SQL: SELECT "team" FROM "race_2_results" WHERE "laps">49 AND "grid"=8;

Question: What is the grid sum with more than 50 laps?
SQL: SELECT SUM("grid") FROM "race_2_results" WHERE "laps">50;