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

Question: What year was the Competition of World Junior Championships with a 20th (qf) position?
SQL: SELECT AVG("year") FROM "competition_record" WHERE "competition"='world junior championships' AND "position"='20th (qf)';

Question: What was the notes of the 400 m event before 2004 with a position of 12th (h)?
SQL: SELECT "notes" FROM "competition_record" WHERE "event"='400 m' AND "year"<2004 AND "position"='12th (h)';

Question: Which venue had a note of 3:34.88 after 2003?
SQL: SELECT "venue" FROM "competition_record" WHERE "year">2003 AND "notes"='3:34.88';

Question: What were the notes of the All-Africa Games before 2007?
SQL: SELECT "notes" FROM "competition_record" WHERE "competition"='all-africa games' AND "year"<2007;

Question: Which event in 2007 had a position of 5th?
SQL: SELECT "event" FROM "competition_record" WHERE "year"=2007 AND "position"='5th';