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

### Instruction:
What is the average Gold, when Silver is less than 107, when Bronze is greater than 42, and when Rank is 3?

### Inputs:
table_name: table, columns: ['Rank', 'Gold', 'Silver', 'Bronze', 'Total']

### Response:
SELECT AVG Gold FROM table WHERE Silver < 107 AND Bronze > 42 AND Rank = 3