CREATE TABLE "history" (
  "year" text,
  "1st_position" text,
  "2nd_position" text,
  "9th_position" text,
  "10th_position" text
);

Question: What is in the ninth position where the tenth position is rabat ajax?
SQL: SELECT "9th_position" FROM "history" WHERE "10th_position"='rabat ajax';

Question: In what year is the tenth position xghajra?
SQL: SELECT "year" FROM "history" WHERE "10th_position"='xghajra';

Question: In what year is the 9th position balzan?
SQL: SELECT "year" FROM "history" WHERE "9th_position"='balzan';

Question: Where there is a tenth position of gozo, what is the first position?
SQL: SELECT "1st_position" FROM "history" WHERE "10th_position"='gozo';

Question: In what year is the 9th position rabat ajax?
SQL: SELECT "year" FROM "history" WHERE "9th_position"='rabat ajax';