CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text
);

Question: Before 2007, what was the avg start that had a pole of 0 and in 65th position?
SQL: SELECT AVG("starts") FROM "nascar_sprint_cup_series" WHERE "poles"=0 AND "position"='65th' AND "year"<2007;

Question: How many starts had an avg start of less than 37 and won $1,636,827?
SQL: SELECT SUM("starts") FROM "nascar_sprint_cup_series" WHERE "winnings"='$1,636,827' AND "avg_start"<37;

Question: in 1990, how many wins had an avg finish of 35 and a start less than 1?
SQL: SELECT MAX("wins") FROM "nascar_sprint_cup_series" WHERE "avg_finish"=35 AND "year"=1990 AND "starts"<1;

Question: What year had a pole smaller than 0 and in 77th position?
SQL: SELECT MAX("year") FROM "nascar_sprint_cup_series" WHERE "position"='77th' AND "poles"<0;

Question: in 2007, what is the avg finish that had a start less than 1?
SQL: SELECT SUM("avg_finish") FROM "nascar_sprint_cup_series" WHERE "year"=2007 AND "starts"<1;