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

Question: What is the lowest year that had foil team as the event at Melbourne?
SQL: SELECT MIN("year") FROM "achievements" WHERE "event"='foil team' AND "venue"='melbourne';

Question: What is the number of years that the event was foil team and took place in Los Angeles?
SQL: SELECT COUNT("year") FROM "achievements" WHERE "venue"='los angeles' AND "event"='foil team';

Question: What was the position at the venue of lyon?
SQL: SELECT "position" FROM "achievements" WHERE "venue"='lyon';

Question: What was the position for mauro at the world championships in 1985 during the foil individual event?
SQL: SELECT "position" FROM "achievements" WHERE "event"='foil individual' AND "competition"='world championships' AND "year"=1985;