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 total lost that has points greater than 8 and a difference of - 8 and a position of greater than 5?
SQL: SELECT SUM("lost") FROM "apea_s_campeonato_paulista" WHERE "points">8 AND "difference"='- 8' AND "position">5;

Question: What is the greatest number of points that has a lost bigger than 5, a difference of - 10 and a played bigger than 12?
SQL: SELECT MAX("points") FROM "apea_s_campeonato_paulista" WHERE "lost">5 AND "difference"='- 10' AND "played">12;