Table: athletes_results
Columns: year
competition
venue
position
event
notes

Question: What year was the Competition of World Junior Championships with a 20th (qf) position?
SQL: SELECT AVG("year") FROM athletes_results 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 athletes_results 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 athletes_results WHERE "year" > 2003 AND "notes" = '3:34.88'

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

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