CREATE TABLE table_name_5 (attendance NUMBER, week VARCHAR2, result VARCHAR2)

What is the attendance in a week earlier than 4, and result is w 31-20?
SELECT AVG(attendance) FROM table_name_5 WHERE week < 4 AND result = "w 31-20"
SELECT AVG("attendance") FROM "table_name_5" WHERE "result" = "w 31-20" AND "week" < 4