user: ### NOW ANSWER:
Question: What is the highest capacity of the airport in rio de janeiro, which was ranked greater than 6 and had more than 5099643 total passengers?
Columns: ['Rank', 'Location', 'Total Passengers', 'Annual change', 'Capacity', 'Capacity in use']
Types: ['real', 'text', 'real', 'text', 'real', 'text']
Sample row: [1.0, 'São Paulo', 21727649.0, '6.51%', 20500000.0, '106.0%']
SQL:

assistant: SELECT MAX("Capacity") FROM "Table" WHERE "Rank" > 6.0 AND "Location" = 'rio de janeiro' AND "Total Passengers" > 5099643.0;