What is the average age for each gender?
CREATE TABLE Person (gender VARCHAR, age INTEGER)
SELECT AVG(age), gender FROM Person GROUP BY gender
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Person (gender VARCHAR, age INTEGER) Question: What is the average age for each gender? [/INST] SELECT AVG(age), gender FROM Person GROUP BY gender </s>