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

Question: What is the earliest year the world junior championships has 1500 m notes?
SQL: SELECT MIN("year") FROM "achievements" WHERE "notes"='1500 m' AND "competition"='world junior championships';

Question: Which venue had 5000 m notes in 2009 with a 1st position?
SQL: SELECT "venue" FROM "achievements" WHERE "notes"='5000 m' AND "year"=2009 AND "position"='1st';

Question: What is the average year with 7th (heats) position?
SQL: SELECT AVG("year") FROM "achievements" WHERE "position"='7th (heats)';