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

Question: What is the sum of the grid of driver ryan hunter-reay, who has more than 24 points?
SQL: SELECT SUM("grid") FROM "race" WHERE "driver"='ryan hunter-reay' AND "points">24;

Question: What is the total number of points of driver enrique bernoldi (r)?
SQL: SELECT COUNT("points") FROM "race" WHERE "driver"='enrique bernoldi (r)';