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

Question: Which Drawn has a Points of 6, and a Against larger than 16?
SQL: SELECT SUM("drawn") FROM "campeonato_paulista" WHERE "points"=6 AND "against">16;

Question: Which Points has a Difference of 3, and a Played smaller than 10?
SQL: SELECT AVG("points") FROM "campeonato_paulista" WHERE "difference"='3' AND "played"<10;

Question: Which Points has a Team of são paulo athletic, and a Position larger than 5?
SQL: SELECT SUM("points") FROM "campeonato_paulista" WHERE "team"='são paulo athletic' AND "position">5;

Question: Which Position has a Played larger than 9, and a Points smaller than 11, and a Drawn smaller than 0?
SQL: SELECT MIN("position") FROM "campeonato_paulista" WHERE "played">9 AND "points"<11 AND "drawn"<0;