Of all the schools that left before 2003, what is the average year joined?
CREATE TABLE table_name_22 (year_joined INTEGER, year_left INTEGER)
SELECT AVG(year_joined) FROM table_name_22 WHERE year_left < 2003
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (year_joined INTEGER, year_left INTEGER) Question: Of all the schools that left before 2003, what is the average year joined? [/INST] SELECT AVG(year_joined) FROM table_name_22 WHERE year_left < 2003 </s>