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

Question: How many years had a 100 m hurdles event at the world championships in Osaka, Japan?
SQL: SELECT SUM("year") FROM "achievements" WHERE "event"='100 m hurdles' AND "competition"='world championships' AND "venue"='osaka, japan';

Question: What was the position of the event held in Valencia, Spain?
SQL: SELECT "position" FROM "achievements" WHERE "venue"='valencia, spain';

Question: What was the earliest year that an event held in Berlin, Germany had a 100 m hurdles event?
SQL: SELECT MIN("year") FROM "achievements" WHERE "venue"='berlin, germany' AND "event"='100 m hurdles';

Question: What even was held in Valencia, Spain?
SQL: SELECT "event" FROM "achievements" WHERE "venue"='valencia, spain';