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

### Instruction:
What is the most gold medals that a team ranked higher than 6, have 1 silver medal, and more than 4 total medals have?

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

### Response:
SELECT MAX Gold FROM table WHERE Rank < 6 AND Silver = 1 AND Total > 4