What is Year(s) Won, when Total is "145", and when Country is "United States"?
CREATE TABLE table_name_40 (year_s__won VARCHAR, total VARCHAR, country VARCHAR)
SELECT year_s__won FROM table_name_40 WHERE total = 145 AND country = "united states"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (year_s__won VARCHAR, total VARCHAR, country VARCHAR) Question: What is Year(s) Won, when Total is "145", and when Country is "United States"? [/INST] SELECT year_s__won FROM table_name_40 WHERE total = 145 AND country = "united states" </s>