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

Question: Which amount of lost had an against of more than 22 and 9 points?
SQL: SELECT "lost" FROM "apea_s_campeonato_paulista" WHERE "against">22 AND "points"=9;

Question: What is the total amount of points when the played number was less than 12?
SQL: SELECT SUM("points") FROM "apea_s_campeonato_paulista" WHERE "played"<12;

Question: What is the largest points number where the difference is 12?
SQL: SELECT MAX("points") FROM "apea_s_campeonato_paulista" WHERE "difference"='12';

Question: What is the total number of points where there were 3 losses and a played number bigger than 12?
SQL: SELECT SUM("points") FROM "apea_s_campeonato_paulista" WHERE "lost"=3 AND "played">12;