How many dogs have an age below the average?
CREATE TABLE Dogs (age INTEGER)
SELECT COUNT(*) FROM Dogs WHERE age < (SELECT AVG(age) FROM Dogs)
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Dogs (age INTEGER) Question: How many dogs have an age below the average? [/INST] SELECT COUNT(*) FROM Dogs WHERE age < (SELECT AVG(age) FROM Dogs) </s>