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

Question: What is the latest year that has an engine of cosworth v8, with a chassis of hesketh 308e?
SQL: SELECT MAX("year") FROM "complete_formula_one_results" WHERE "engine"='cosworth v8' AND "chassis"='hesketh 308e';

Question: Which year has brm v12 as the engine?
SQL: SELECT "year" FROM "complete_formula_one_results" WHERE "engine"='brm v12';

Question: What is the latesr year that has more points than 0?
SQL: SELECT MAX("year") FROM "complete_formula_one_results" WHERE "pts">0;