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

Question: What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games?
SQL: SELECT SUM("year") FROM "achievements" WHERE "position"='6th' AND "competition"='commonwealth games';

Question: What is the highest Year, when the Venue is Beijing, PR China?
SQL: SELECT MAX("year") FROM "achievements" WHERE "venue"='beijing, pr china';

Question: What is the average Year, when Competition is Oceania Youth Championships?
SQL: SELECT AVG("year") FROM "achievements" WHERE "competition"='oceania youth championships';

Question: What is Event, when Position is 4th?
SQL: SELECT "event" FROM "achievements" WHERE "position"='4th';