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

Question: Which average's against score has 2 as a difference and a lost of 5?
SQL: SELECT AVG("against") FROM "torneio_rio_s_o_paulo" WHERE "difference"='2' AND "lost"=5;

Question: How many positions had a difference of - 4 and an against of less than 24?
SQL: SELECT COUNT("position") FROM "torneio_rio_s_o_paulo" WHERE "difference"='- 4' AND "against"<24;

Question: What is the smallest lost when position is larger than 6, drawn is 7, and the points stat is less than 15?
SQL: SELECT MIN("lost") FROM "torneio_rio_s_o_paulo" WHERE "position">6 AND "drawn"=7 AND "points"<15;

Question: What is the largest played number when the difference is - 8 and position is more than 8?
SQL: SELECT MAX("played") FROM "torneio_rio_s_o_paulo" WHERE "difference"='- 8' AND "position">8;

Question: What is the mean drawn when the difference is 0 and the against stat is more than 31?
SQL: SELECT AVG("drawn") FROM "torneio_rio_s_o_paulo" WHERE "difference"='0' AND "against">31;