What was the latest year that resulted in won?
CREATE TABLE table_name_17 (year INTEGER, result VARCHAR)
SELECT MAX(year) FROM table_name_17 WHERE result = "won"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (year INTEGER, result VARCHAR) Question: What was the latest year that resulted in won? [/INST] SELECT MAX(year) FROM table_name_17 WHERE result = "won" </s>