What is the average Loss, when Avg/g is 0, and when Long is less than 0?
CREATE TABLE table_name_12 (loss INTEGER, avg_g VARCHAR, long VARCHAR)
SELECT AVG(loss) FROM table_name_12 WHERE avg_g = 0 AND long < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (loss INTEGER, avg_g VARCHAR, long VARCHAR) Question: What is the average Loss, when Avg/g is 0, and when Long is less than 0? [/INST] SELECT AVG(loss) FROM table_name_12 WHERE avg_g = 0 AND long < 0 </s>