CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "event" text
);

Question: What is the earliest year that a team event was included at Vilamoura, Portugal?
SQL: SELECT MIN("year") FROM "achievements" WHERE "event"='team' AND "venue"='vilamoura, portugal';

Question: In which event before 2001 did the athlete place 16th?
SQL: SELECT "event" FROM "achievements" WHERE "year"<2001 AND "result"='16th';

Question: In which tournament was the result 25th?
SQL: SELECT "tournament" FROM "achievements" WHERE "result"='25th';