What is the average end year of the player from swe and a summer transfer window?
CREATE TABLE table_name_81 (ends INTEGER, nat VARCHAR, transfer_window VARCHAR)
SELECT AVG(ends) FROM table_name_81 WHERE nat = "swe" AND transfer_window = "summer"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (ends INTEGER, nat VARCHAR, transfer_window VARCHAR) Question: What is the average end year of the player from swe and a summer transfer window? [/INST] SELECT AVG(ends) FROM table_name_81 WHERE nat = "swe" AND transfer_window = "summer" </s>