How many losses have a played greater than 8, ypiranga-sp as the team, with a position greater than 5?
CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "played">8 AND "team"='ypiranga-sp' AND "position">5;