CREATE TABLE "2004_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);

Question: What is the losses average when the against is greater than 1255 and wins is 0 and the draws less than 0?
SQL: SELECT AVG("losses") FROM "2004_ladder" WHERE "against">1255 AND "wins"=0 AND "draws"<0;

Question: What is the smallest losses when the wins are 5 and the against less than 1852?
SQL: SELECT MIN("losses") FROM "2004_ladder" WHERE "wins"=5 AND "against"<1852;

Question: What is the total against that has wins less than 9, and losses less than 16, and 2 as the byes, and Ballarat FL of ballarat?
SQL: SELECT SUM("against") FROM "2004_ladder" WHERE "wins"<9 AND "losses"<16 AND "byes"=2 AND "ballarat_fl"='ballarat';

Question: What is the fewest losses that Ballarat FL of Lake Wendouree has when the wins are smaller than 9?
SQL: SELECT MIN("losses") FROM "2004_ladder" WHERE "ballarat_fl"='lake wendouree' AND "wins"<9;

Question: What is the smallest byes when the wins are 3?
SQL: SELECT MIN("byes") FROM "2004_ladder" WHERE "wins"=3;