CREATE TABLE "2007_ladder_and_finals" (
  "benalla_dfl" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "byes" real,
  "against" real
);

Question: What is the smallest draws for Byes less than 4?
SQL: SELECT MIN("draws") FROM "2007_ladder_and_finals" WHERE "byes"<4;

Question: When losses is 6 and draws is more than 0, what is the greatest byes?
SQL: SELECT MAX("byes") FROM "2007_ladder_and_finals" WHERE "losses"=6 AND "draws">0;

Question: When Benall DFL is Goorambat with less than 13 wins, what is the least amount of losses?
SQL: SELECT MIN("losses") FROM "2007_ladder_and_finals" WHERE "benalla_dfl"='goorambat' AND "wins"<13;

Question: When Benalla DFL is swanpool with less than 16 losses, what is the sum of Byes?
SQL: SELECT COUNT("byes") FROM "2007_ladder_and_finals" WHERE "benalla_dfl"='swanpool' AND "losses"<16;

Question: What is the most wins for draws greater than 0?
SQL: SELECT MAX("wins") FROM "2007_ladder_and_finals" WHERE "draws">0;