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

Question: What is the Points with a Played larger than 14?
SQL: SELECT COUNT("points") FROM "apea_s_campeonato_paulista" WHERE "played">14;

Question: What is the Points with an Against smaller than 16?
SQL: SELECT AVG("points") FROM "apea_s_campeonato_paulista" WHERE "against"<16;

Question: Which Team has a Lost larger than 2, and a Position smaller than 7, and a Drawn smaller than 2, and a Points of 22?
SQL: SELECT "team" FROM "apea_s_campeonato_paulista" WHERE "lost">2 AND "position"<7 AND "drawn"<2 AND "points"=22;

Question: Which Points has a Position of 3, and a Drawn smaller than 2?
SQL: SELECT MAX("points") FROM "apea_s_campeonato_paulista" WHERE "position"=3 AND "drawn"<2;

Question: Which Played has a Points of 2, and a Position smaller than 8?
SQL: SELECT AVG("played") FROM "apea_s_campeonato_paulista" WHERE "points"=2 AND "position"<8;