What is the total losses when Hay is the golden river and there are more than 2 byes?
CREATE TABLE table_name_1 (losses VARCHAR, golden_rivers VARCHAR, byes VARCHAR)
SELECT COUNT(losses) FROM table_name_1 WHERE golden_rivers = "hay" AND byes > 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (losses VARCHAR, golden_rivers VARCHAR, byes VARCHAR) Question: What is the total losses when Hay is the golden river and there are more than 2 byes? [/INST] SELECT COUNT(losses) FROM table_name_1 WHERE golden_rivers = "hay" AND byes > 2 </s>