arXiv · 2503.24364
Query and Conquer: Execution-Guided SQL Generation
Abstract
We propose a novel approach for generating complex outputs that significantly improves accuracy in text-to-SQL tasks. Our method leverages execution results to select the most semantically consistent query from multiple candidates, enabling smaller, cost-effective models to surpass computationally intensive reasoning methods such as o1, o3-mini, and DeepSeek R1 while reducing inference cost by as much as 30 times. It integrates effortlessly with existing models, offering a practical and scalable pathway to state-of-the-art SQL generation.
Explore related subjects
Keep this discovery
Łukasz Borchmann, Marek Wydmuch. 2025-03-31. Query and Conquer: Execution-Guided SQL Generation. https://arxiv.org/abs/2503.24364
Cite the original work for its findings. Save a collection to share your selection of sources.