Which average Long has a Gain smaller than 16, and a Loss smaller than 6?
CREATE TABLE table_name_51 (long INTEGER, gain VARCHAR, loss VARCHAR)
SELECT AVG(long) FROM table_name_51 WHERE gain < 16 AND loss < 6
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (long INTEGER, gain VARCHAR, loss VARCHAR) Question: Which average Long has a Gain smaller than 16, and a Loss smaller than 6? [/INST] SELECT AVG(long) FROM table_name_51 WHERE gain < 16 AND loss < 6 </s>