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

### Instruction:
How many gold medals for a nation with rank less than 5, more than 0 silvers and a total of 2 medals?

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

### Response:
SELECT AVG Gold FROM table WHERE Rank < 5 AND Silver > 0 AND Total = 2