CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);

Question: What is the average lap of the race with a 23 finish?
SQL: SELECT AVG("laps") FROM "indy_500_results" WHERE "finish"='23';

Question: What is the lowest lap with a 145.926 qual?
SQL: SELECT MIN("laps") FROM "indy_500_results" WHERE "qual"='145.926';

Question: What is the finish with 51 laps?
SQL: SELECT "finish" FROM "indy_500_results" WHERE "laps"=51;

Question: How many laps were in 1958?
SQL: SELECT SUM("laps") FROM "indy_500_results" WHERE "year"='1958';