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

Question: The qual of totals took place during what year?
SQL: SELECT "year" FROM "indy_500_results" WHERE "qual"='totals';

Question: What year did the finish of 15 happen in?
SQL: SELECT "year" FROM "indy_500_results" WHERE "finish"='15';

Question: What's the Finish rank of 31?
SQL: SELECT "finish" FROM "indy_500_results" WHERE "rank"='31';

Question: What year did the rank of 31 happen in?
SQL: SELECT "year" FROM "indy_500_results" WHERE "rank"='31';