CREATE TABLE "dakar_rally_results" (
  "year" real,
  "class" text,
  "vehicle" text,
  "position" text,
  "stages_won" text
);

Question: What is the average year that has a car that won 0 stages with a position of DNF?
SQL: SELECT AVG("year") FROM "dakar_rally_results" WHERE "class"='car' AND "stages_won"='0' AND "position"='dnf';

Question: What is the class that that won 2 stages and has a position of DNF?
SQL: SELECT "class" FROM "dakar_rally_results" WHERE "stages_won"='2' AND "position"='dnf';

Question: What position did the BMW vehicle made in 2006 hold?
SQL: SELECT "position" FROM "dakar_rally_results" WHERE "vehicle"='bmw' AND "year"=2006;