ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2503.13342
31
2

Valid Text-to-SQL Generation with Unification-based DeepStochLog

17 March 2025
Ying Jiao
Luc de Raedt
G. Marra
    NAI
ArXivPDFHTML
Abstract

Large language models have been used to translate natural language questions to SQL queries. Without hard constraints on syntax and database schema, they occasionally produce invalid queries that are not executable. These failures limit the usage of these systems in real-life scenarios. We propose a neurosymbolic framework that imposes SQL syntax and schema constraints with unification-based definite clause grammars and thus guarantees the generation of valid queries. Our framework also builds a bi-directional interface to language models to leverage their natural language understanding abilities. The evaluation results on a subset of SQL grammars show that all our output queries are valid. This work is the first step towards extending language models with unification-based grammars. We demonstrate this extension enhances the validity, execution accuracy, and ground truth alignment of the underlying language model by a large margin. Our code is available atthis https URL.

View on arXiv
@article{jiao2025_2503.13342,
  title={ Valid Text-to-SQL Generation with Unification-based DeepStochLog },
  author={ Ying Jiao and Luc De Raedt and Giuseppe Marra },
  journal={arXiv preprint arXiv:2503.13342},
  year={ 2025 }
}
Comments on this paper