CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "reg_season" text,
  "playoffs" text
);

Question: Which Reg Season has a Division of 2?
SQL: SELECT "reg_season" FROM "year_by_year" WHERE "division"=2;

Question: Which Year is the highest one that has a Reg Season of 3rd, western, and a Division larger than 2?
SQL: SELECT MAX("year") FROM "year_by_year" WHERE "reg_season"='3rd, western' AND "division">2;

Question: Which year is the lowest one when the playoffs did not qualify?
SQL: SELECT MIN("year") FROM "year_by_year" WHERE "playoffs"='did not qualify';

Question: Which Year has a Reg Season of 3rd, western?
SQL: SELECT AVG("year") FROM "year_by_year" WHERE "reg_season"='3rd, western';

Question: Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and a Year smaller than 2013?
SQL: SELECT AVG("division") FROM "year_by_year" WHERE "reg_season"='1st, western' AND "playoffs"='champions' AND "year"<2013;