CREATE TABLE "minor_premierships_9_62" (
  "year" real,
  "competition" text,
  "wins" real,
  "draws" real,
  "loses" real
);

Question: What highest Year has Wins 15 and Losses less than 5?
SQL: SELECT MAX("year") FROM "minor_premierships_9_62" WHERE "wins"=15 AND "loses"<5;

Question: What average Year has Losses 4, and Wins less than 18, and Draws greater than 1?
SQL: SELECT AVG("year") FROM "minor_premierships_9_62" WHERE "loses"=4 AND "wins"<18 AND "draws">1;

Question: What average Wins has Losses 2, and Draws less than 0?
SQL: SELECT AVG("wins") FROM "minor_premierships_9_62" WHERE "loses"=2 AND "draws"<0;

Question: What average Loses has Draws less than 0?
SQL: SELECT AVG("loses") FROM "minor_premierships_9_62" WHERE "draws"<0;

Question: What sum of Losses has Year greater than 1972, and Competition of nswrfl, and Draws 0, and Wins 16?
SQL: SELECT SUM("loses") FROM "minor_premierships_9_62" WHERE "year">1972 AND "competition"='nswrfl' AND "draws"=0 AND "wins"=16;