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

### Instruction:
what is the highest gold when the nation is total and the total is less than 24?

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

### Response:
SELECT MAX Gold FROM table WHERE Nation = total AND Total < 24