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

### Instruction:
What is the highest average of goals less than 45 for team Real Sociedad?

### Inputs:
table_name: table, columns: ['Goalkeeper', 'Goals', 'Matches', 'Average', 'Team']

### Response:
SELECT MAX Average FROM table WHERE Goals < 45 AND Team = real sociedad