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

### Instruction:
How many gold did Gabon have when they were ranked no higher than 17, and less than 7 in total?

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

### Response:
SELECT SUM Gold FROM table WHERE Total < 7 AND Nation = gabon AND Rank < 17