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

### Instruction:
What's the smallest total with a bronze count of 5 and a gold count less than 8?

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

### Response:
SELECT MIN Total FROM table WHERE Bronze = 5 AND Gold < 8