CREATE TABLE "2011_ladder" (
  "golden_rivers" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);

Question: What is the highest number of byes when draws are larger than 0?
SQL: SELECT MAX("byes") FROM "2011_ladder" WHERE "draws">0;

Question: What is the lowest amount of losses when the goldne rivers is quambatook, wins are smaller than 15 and draws larger than 0?
SQL: SELECT MIN("losses") FROM "2011_ladder" WHERE "wins"<15 AND "golden_rivers"='quambatook' AND "draws">0;

Question: How many losses did the golden rivers of ultima have when wins were less than 12 and byes larger than 2?
SQL: SELECT COUNT("losses") FROM "2011_ladder" WHERE "wins"<12 AND "golden_rivers"='ultima' AND "byes">2;

Question: How many losses did the Golden rivers of hay have?
SQL: SELECT AVG("losses") FROM "2011_ladder" WHERE "golden_rivers"='hay';

Question: What is the total number of byes when the wins were 9?
SQL: SELECT COUNT("byes") FROM "2011_ladder" WHERE "wins"=9;

Question: What is th average dras when wins are less than 12 and the against is 989?
SQL: SELECT AVG("draws") FROM "2011_ladder" WHERE "against"=989 AND "wins"<12;