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

### Instruction:
What is the average total number of medals when there were 4 bronze, more than 2 silver, and less than 7 gold medals?

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

### Response:
SELECT AVG Total FROM table WHERE Bronze = 4 AND Silver > 2 AND Gold < 7