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

### Instruction:
What is the average number of gold medals won by Brazil for entries with more than 1 bronze medal but a total smaller than 4?

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

### Response:
SELECT AVG Gold FROM table WHERE Total < 4 AND Nation = brazil AND Bronze > 1