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

Question: When the played number is less than 8 and against is 23, what is the least amount of points?
SQL: SELECT MIN("points") FROM "torneio_rio_s_o_paulo" WHERE "against"=23 AND "played"<8;

Question: When the corinthians have a position of less than 5, what is the average against?
SQL: SELECT AVG("against") FROM "torneio_rio_s_o_paulo" WHERE "position"<5 AND "team"='corinthians';

Question: What position has less than 6 Points?
SQL: SELECT COUNT("position") FROM "torneio_rio_s_o_paulo" WHERE "points"<6;

Question: What is the number of against when the difference is 10 and played is greater than 8?
SQL: SELECT COUNT("against") FROM "torneio_rio_s_o_paulo" WHERE "difference"='10' AND "played">8;