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

### Instruction:
What is the highest capacity of the airport in Rio de Janeiro, which was ranked greater than 6 and had more than 5,099,643 total passengers?

### Inputs:
table_name: table, columns: ['Rank', 'Location', 'Total Passengers', 'Annual change', 'Capacity', 'Capacity in use']

### Response:
SELECT MAX Capacity FROM table WHERE Rank > 6 AND Location = rio de janeiro AND Total Passengers > 5,099,643