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

Question: How many positions have points against less than 28, americano-sp as the team, with a played greater than 8?
SQL: SELECT COUNT("position") FROM "campeonato_paulista" WHERE "against"<28 AND "team"='americano-sp' AND "played">8;

Question: How many losses have points against less than 15?
SQL: SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "against"<15;

Question: What average played has an against less than 15?
SQL: SELECT AVG("played") FROM "campeonato_paulista" WHERE "against"<15;

Question: How many losses have a played greater than 8, ypiranga-sp as the team, with a position greater than 5?
SQL: SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "played">8 AND "team"='ypiranga-sp' AND "position">5;

Question: What lost has a position greater than 2, a drawn greater than 0, with an against greater than 15?
SQL: SELECT "lost" FROM "campeonato_paulista" WHERE "position">2 AND "drawn">0 AND "against">15;