What is the attendance in a week earlier than 4, and result is w 31-20?
CREATE TABLE table_name_5 (attendance INTEGER, week VARCHAR, result VARCHAR)
SELECT AVG(attendance) FROM table_name_5 WHERE week < 4 AND result = "w 31-20"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (attendance INTEGER, week VARCHAR, result VARCHAR) Question: What is the attendance in a week earlier than 4, and result is w 31-20? [/INST] SELECT AVG(attendance) FROM table_name_5 WHERE week < 4 AND result = "w 31-20" </s>