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 greatest lost where played is less than 9?
SQL: SELECT MAX("lost") FROM "apea_s_campeonato_paulista" WHERE "played"<9;

Question: What is the greatest played with a drawn less than 1 and a position of less than 1?
SQL: SELECT MAX("played") FROM "apea_s_campeonato_paulista" WHERE "drawn"<1 AND "position"<1;

Question: What is the smallest drawn when the points are less than 7 and the against greater than 31?
SQL: SELECT MIN("drawn") FROM "apea_s_campeonato_paulista" WHERE "points"<7 AND "against">31;

Question: What is the name of the team that has 13 points?
SQL: SELECT "team" FROM "apea_s_campeonato_paulista" WHERE "points"=13;