user: ### NOW ANSWER:
Question: What was the highest number of votes for mir-hossein mousavi when the number of invalid votes is 5683
Columns: ['Province', 'Mahmoud Ahmadinejad', 'Mehdi Karroubi', 'Mir-Hossein Mousavi', 'Mohsen Rezaee', 'Spoiled ballots', 'Total votes']
Types: ['text', 'real', 'real', 'real', 'real', 'real', 'real']
Sample row: ['Ardabil', 325911.0, 2319.0, 302825.0, 6578.0, 4372.0, 642005.0]
SQL:

assistant: SELECT MAX("Mir-Hossein Mousavi") FROM "Table" WHERE "Spoiled ballots" = 5683.0;