Add up all the Ends columns that have goals smaller than 0.
CREATE TABLE table_name_65 (ends INTEGER, goals INTEGER)
SELECT SUM(ends) FROM table_name_65 WHERE goals < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (ends INTEGER, goals INTEGER) Question: Add up all the Ends columns that have goals smaller than 0. [/INST] SELECT SUM(ends) FROM table_name_65 WHERE goals < 0 </s>