CREATE TABLE "2009_ladder" (
  "sunrayia_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);

Question: What is the total number of losses for teams with more than 0 byes?
SQL: SELECT COUNT("losses") FROM "2009_ladder" WHERE "byes">0;

Question: What is the sum of draws for teams with against of 1731 and under 10 losses?
SQL: SELECT SUM("draws") FROM "2009_ladder" WHERE "against"=1731 AND "losses"<10;