What is the average weight of cars each year?
CREATE TABLE CARS_DATA (YEAR VARCHAR, Weight INTEGER)
SELECT AVG(Weight), YEAR FROM CARS_DATA GROUP BY YEAR
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE CARS_DATA (YEAR VARCHAR, Weight INTEGER) Question: What is the average weight of cars each year? [/INST] SELECT AVG(Weight), YEAR FROM CARS_DATA GROUP BY YEAR </s>