CREATE TABLE "match_attendance" (
  "venue" text,
  "hosted" real,
  "average" real,
  "highest" real,
  "lowest" real,
  "total" real,
  "last_year" text,
  "up_down" text
);

Question: What is the maximum average associated with a total of 221902?
SQL: SELECT MAX("average") FROM "match_attendance" WHERE "total"=221902;

Question: How many values of hosted have a highest value of 42659?
SQL: SELECT COUNT("hosted") FROM "match_attendance" WHERE "highest"=42659;

Question: How many values of up/down have a total value of exactly 301470?
SQL: SELECT COUNT("up_down") FROM "match_attendance" WHERE "total"=301470;

Question: What is the up/down associated with the Subiaco Oval?
SQL: SELECT "up_down" FROM "match_attendance" WHERE "venue"='Subiaco Oval';