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

### Instruction:
What is the rank of the Nation that has fewer than 24 total medals are more than 7 Gold medals?

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

### Response:
SELECT AVG Rank FROM table WHERE Total < 24 AND Gold > 7