Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
What is the average end year of the player from swe and a summer transfer window?

### Inputs:
table_name: table, columns: ['Nat.', 'Name', 'Moving from', 'Type', 'Transfer window', 'Ends', 'Transfer fee', 'Source']

### Response:
SELECT AVG Ends FROM table WHERE Nat. = swe AND Transfer window = summer