CREATE TABLE "average_attendance" (
  "year" real,
  "league" text,
  "average_attendance" real,
  "num_of_home_games" real,
  "league_rank" text,
  "canada_usa_rank" text
);

Question: What was the Average Attendance during the Year in which there were 9 Home Games?
SQL: SELECT MAX("average_attendance") FROM "average_attendance" WHERE "num_of_home_games"=9;

Question: Before 2012, what was the greatest # of Home Games with a Canada - USA Rank of 52nd, and an Average Attendance less than 992?
SQL: SELECT MAX("num_of_home_games") FROM "average_attendance" WHERE "year"<2012 AND "canada_usa_rank"='52nd' AND "average_attendance"<992;

Question: In the year where the League Rank was 10th, what was the greatest number of Home Games?
SQL: SELECT MAX("num_of_home_games") FROM "average_attendance" WHERE "league_rank"='10th';

Question: After the year 2011, when the Canada - USA Rank was 46th, what was the League Rank?
SQL: SELECT "league_rank" FROM "average_attendance" WHERE "year">2011 AND "canada_usa_rank"='46th';