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

Question: what is the latest year when the venue is berlin, germany?
SQL: SELECT MAX("year") FROM "achievements" WHERE "venue"='berlin, germany';

Question: what is the year when the notes is 5000 m and the competition is world junior championships in athletics?
SQL: SELECT COUNT("year") FROM "achievements" WHERE "notes"='5000 m' AND "competition"='world junior championships in athletics';