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

Question: What is the average value for Draws, when Against is "2177", and when Byes is less than 4?
SQL: SELECT AVG("draws") FROM "2008_ladder_and_finals" WHERE "against"=2177 AND "byes"<4;

Question: What is the total number of Losses, when Wins is "16", and when Against is less than 772?
SQL: SELECT COUNT("losses") FROM "2008_ladder_and_finals" WHERE "wins"=16 AND "against"<772;

Question: What is the lowest value for Draws, when Losses is "0", and when Byes is greater than 4?
SQL: SELECT MIN("draws") FROM "2008_ladder_and_finals" WHERE "losses"=0 AND "byes">4;

Question: What is the highest value for Byes, when Wins is less than 16, when Benalla DFL is "Swanpool", and when Against is less than 2177?
SQL: SELECT MAX("byes") FROM "2008_ladder_and_finals" WHERE "wins"<16 AND "benalla_dfl"='swanpool' AND "against"<2177;

Question: What is the highest value for Byes, when Against is less than 1794, when Losses is "6", and when Draws is less than 0?
SQL: SELECT MAX("byes") FROM "2008_ladder_and_finals" WHERE "against"<1794 AND "losses"=6 AND "draws"<0;