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

Question: How many Points have Drawn of 7, and a Team of corinthians, and a Played larger than 18?
SQL: SELECT COUNT("points") FROM "campeonato_paulista" WHERE "drawn"=7 AND "team"='corinthians' AND "played">18;

Question: Which Points is the highest one that has a Position of 5, and a Played smaller than 18?
SQL: SELECT MAX("points") FROM "campeonato_paulista" WHERE "position"=5 AND "played"<18;

Question: Which Drawn is the average one that has a Position smaller than 9, and Points smaller than 22, and a Lost smaller than 9, and an Against larger than 29?
SQL: SELECT AVG("drawn") FROM "campeonato_paulista" WHERE "position"<9 AND "points"<22 AND "lost"<9 AND "against">29;

Question: How many Against have Played smaller than 18?
SQL: SELECT COUNT("against") FROM "campeonato_paulista" WHERE "played"<18;