CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);

Question: What was the attendance in week 9?
SQL: SELECT AVG("attendance") FROM "schedule" WHERE "week"=9;

Question: What week had attendance of 52,714?
SQL: SELECT MAX("week") FROM "schedule" WHERE "attendance"='52,714';