CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);

Question: What is the highest position of the team with an against of 12, less than 11 points, more than 2 drawn, and more than 9 played?
SQL: SELECT MAX("position") FROM "torneio_rio_s_o_paulo" WHERE "against"=12 AND "points"<11 AND "drawn">2 AND "played">9;

Question: What is the difference of the team with 12 points?
SQL: SELECT "difference" FROM "torneio_rio_s_o_paulo" WHERE "points"=12;

Question: What is the average number of played of the team with 3 losses, more than 9 points, a position of 5, and less than 12 against?
SQL: SELECT AVG("played") FROM "torneio_rio_s_o_paulo" WHERE "lost"=3 AND "points">9 AND "position"=5 AND "against"<12;