Using LLM to select the right SQL Query from candidates