CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text,
  "avg_attendance" real
);

Question: How many different Leagues had average attendance of 3589?
SQL: SELECT COUNT("league") FROM "year_by_year" WHERE "avg_attendance"=3589;

Question: How many people saw the 3rd, Central regular season on average?
SQL: SELECT MIN("avg_attendance") FROM "year_by_year" WHERE "regular_season"='3rd, Central';

Question: What League was played in 2007?
SQL: SELECT "league" FROM "year_by_year" WHERE "year"=2007;

Question: When was the average attendance 789?
SQL: SELECT MIN("year") FROM "year_by_year" WHERE "avg_attendance"=789;