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

Question: What is the smallest amount of points had a lost number of 2 when the position was less than 1?
SQL: SELECT MIN("points") FROM "campeonato_paulista" WHERE "lost"=2 AND "position"<1;

Question: What is the mean number of against when the position is less than 1?
SQL: SELECT AVG("against") FROM "campeonato_paulista" WHERE "position"<1;

Question: What is the mean number of played when there are less than 18 points and the position is less than 8?
SQL: SELECT AVG("played") FROM "campeonato_paulista" WHERE "points"<18 AND "position"<8;

Question: What is the sum of lost when against is less than 37, drawn is more than 2, and played is more than 20?
SQL: SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "against"<37 AND "drawn">2 AND "played">20;