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

### Instruction:
What is the highest rank a country with less than 3 gold, more than 2 silver, and less than 5 total medals has?

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

### Response:
SELECT MAX Rank FROM table WHERE Gold < 3 AND Silver > 2 AND Total < 5