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

### Instruction:
What is the total number of gold medals won by nations that won 2 silver medals but fewer than 7 in total?

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

### Response:
SELECT SUM Gold FROM table WHERE Silver = 2 AND Total < 7