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

Question: What year were the Olympic Games?
SQL: SELECT SUM("year") FROM "achievements" WHERE "competition"='olympic games';

Question: What's the year in 5th position that happened in Osaka, Japan?
SQL: SELECT MIN("year") FROM "achievements" WHERE "position"='5th' AND "venue"='osaka, japan';

Question: What year was the venue in Barcelona, Spain?
SQL: SELECT MIN("year") FROM "achievements" WHERE "venue"='barcelona, spain';