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

### Instruction:
When was the average attendance 789?

### Inputs:
table_name: table, columns: ['Year', 'Division', 'League', 'Regular Season', 'Playoffs', 'Open Cup', 'Avg. Attendance']

### Response:
SELECT MIN Year FROM table WHERE Avg. Attendance = 789