What week has a result of L 17-31 first?
CREATE TABLE table_name_17 (week INTEGER, result VARCHAR)
SELECT MAX(week) FROM table_name_17 WHERE result = "l 17-31"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (week INTEGER, result VARCHAR) Question: What week has a result of L 17-31 first? [/INST] SELECT MAX(week) FROM table_name_17 WHERE result = "l 17-31" </s>