Verifying Text-to-SQL Queries under Changing Business Semantics
Abstract
In text-to-SQL and AI-agent analytics, successful SQL execution does not establish semantic correctness under changing business definitions. We study revalidation of fixed queries after changes to refund attribution, tax treatment, eligible populations and exchange-rate dates. An executable verification profile binds the requested revision and knowledge cutoff to legal counterexample data and exact monetary comparison. A preregistered confirmation on 32 newly authored revision families and two local producer bundles retains 192 query-definition cells: 144 nonconforming, 36 finite-suite agreeing and 12 unresolved. Of the nonconforming cells, 63 agree on the current snapshot. At an eight-ledger budget, obligation-guided checking detects 137 discrepancies versus 127 for generic ordering, a paired difference of 6.9 percentage points (family bootstrap 95% interval [2.1, 13.6]; exact family sign-flip p=0.0156). Every ledger arm rejects zero of the 36 agreeing cells. Current-obligation and equal-weight scoring match the guided result, identifying coverage rather than revision-specific priority as the observed source of benefit. Controlled assays, a natural-query pilot and repeated samples provide separate mechanism and robustness evidence. A legal discrepancy refutes conformance; agreement remains restricted to the recorded suite. The study establishes an auditable business-semantic revalidation profile within its authored schema and local-model scope.
Create a lesson
Metadata
- Comments
- 22 pages
Related papers
VCoT-SQL: Enhancing Text-to-SQL Generation through Dual Chain-of-Thought Validation Training
Shared title terminologycs.AIRui Zhang, Yujia Su, Ruixuan Li et al.
Conversational Interaction for LLM-Based Clinical Text-to-SQL: A User Study with Healthcare Professionals
Shared title terminologycs.AIJun-Min Lee, Suyoung Yoo, Gyubok Lee et al.
Reimagining Text-to-SQL: A Survey of Large Language Model Architectures and Strategies
Shared title terminologycs.AIShikhar Dave, Bhaskarjit Sarmah, Stefano Pasquali
Online Evidence-Containment Prediction over Text Spans under Distinct Queries
Shared title terminologycs.AIXiang Liu, Haochen Ding
Similarity-Constrained Reweighting for Complex Query Answering on Knowledge Graphs
Shared title terminologycs.AIDaniel Daza, Alberto Bernardi, Luca Costabello et al.
FormaFin: Verifiable Financial Analysis with Solver-Guided Reinforcement Learning
Shared title terminologycs.AIBethel Hall, William Eiers