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

### Instruction:
What is the total number of medals won by nations that had 7 bronze medals and more than 18 gold medals?

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

### Response:
SELECT SUM Total FROM table WHERE Bronze = 7 AND Gold > 18