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

Question: what is the competition for the event team all-round in the year before 1913?
SQL: SELECT "competition" FROM "achievements" WHERE "event"='team all-round' AND "year"<1913;

Question: what is the event for the year less than 1913 with the position of 2nd?
SQL: SELECT "event" FROM "achievements" WHERE "year"<1913 AND "position"='2nd';

Question: what is the competition in paris for the parallel bars with a position of 1st?
SQL: SELECT "competition" FROM "achievements" WHERE "venue"='paris' AND "position"='1st' AND "event"='parallel bars';

Question: what is the competition in a year after 1911 with the position of 1st for the rings?
SQL: SELECT "competition" FROM "achievements" WHERE "year">1911 AND "position"='1st' AND "event"='rings';

Question: what is the year that the position was 1st in paris?
SQL: SELECT "year" FROM "achievements" WHERE "position"='1st' AND "venue"='paris';