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

Question: What was the total number who attended during week 11?
SQL: SELECT COUNT("attendance") FROM "schedule" WHERE "week"=11;

Question: What was the total number of weeks with a result of l 31-21?
SQL: SELECT COUNT("week") FROM "schedule" WHERE "result"='l 31-21';

Question: What was the average week of a game attended by 12,985 with a result of W 38-14?
SQL: SELECT AVG("week") FROM "schedule" WHERE "attendance">'12,985' AND "result"='w 38-14';