CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" text
);

Question: What year was the cosworth ca2006 2.4 v8 4 series used?
SQL: SELECT AVG("year") FROM "complete_formula_one_results" WHERE "engine"='cosworth ca2006 2.4 v8 4 series';

Question: What engine did the mclaren mp4-20 use?
SQL: SELECT "engine" FROM "complete_formula_one_results" WHERE "chassis"='mclaren mp4-20';

Question: What team used the toyota rvx-07 2.4 v8 engine
SQL: SELECT "entrant" FROM "complete_formula_one_results" WHERE "engine"='toyota rvx-07 2.4 v8';

Question: in what year were 2 points scored?
SQL: SELECT MAX("year") FROM "complete_formula_one_results" WHERE "points"='2';

Question: What engine scored 17 points?
SQL: SELECT "engine" FROM "complete_formula_one_results" WHERE "points"='17';