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

Question: What year had 6.62 m in the notes?
SQL: SELECT "year" FROM "achievements" WHERE "notes"='6.62 m';

Question: Which competition in Budapest, Hungary gave a result of 8th?
SQL: SELECT "competition" FROM "achievements" WHERE "position"='8th' AND "venue"='budapest, hungary';

Question: Which year did the World indoor championships gave a position of 3rd?
SQL: SELECT SUM("year") FROM "achievements" WHERE "competition"='world indoor championships' AND "position"='3rd';

Question: What were the notes in Toronto, Canada?
SQL: SELECT "notes" FROM "achievements" WHERE "venue"='toronto, canada';