What is the attendance in a week earlier than 4, and result is w 31-20?
CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
SELECT AVG("attendance") FROM "schedule" WHERE "week"<4 AND "result"='w 31-20';