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

Question: What's the highest against score that drew more than 5, and had more than 18 points?
SQL: SELECT MAX("against") FROM "campeonato_paulista" WHERE "drawn">5 AND "points">18;

Question: What's the number of losses where played was less than 17?
SQL: SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "played"<17;

Question: What is team ypiranga-sp's average position when they lost by less than 7?
SQL: SELECT AVG("position") FROM "campeonato_paulista" WHERE "team"='ypiranga-sp' AND "lost"<7;