CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);

Question: How many years have had the position of 2nd?
SQL: SELECT COUNT("year") FROM "achievements" WHERE "position"='2nd';

Question: What position had notes of 20km and a year earlier than 2002?
SQL: SELECT "position" FROM "achievements" WHERE "notes"='20km' AND "year"<2002;

Question: What was the venue before 2006, with the position of 10th?
SQL: SELECT "venue" FROM "achievements" WHERE "year"<2006 AND "position"='10th';

Question: What were the notes when the Venue was Turin, Italy?
SQL: SELECT "notes" FROM "achievements" WHERE "venue"='turin, italy';