# Verifying Text-to-SQL Queries under Changing Business Semantics

DevFeed: [Verifying Text-to-SQL Queries under Changing Business Semantics](<https://devfeed.tech/articles/verifying-text-to-sql-queries-under-changing-business-semantics-112022.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.41090>)

Author: Genliang Zhu, Xiaobo Chen, Ziyuan Wang, Chu Wang

Published: 2026-11-02T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [text2sql](<https://devfeed.tech/topics/text2sql.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>)

Tags: [business](<https://devfeed.tech/tags/business.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [semantics](<https://devfeed.tech/tags/semantics.md>), [sql](<https://devfeed.tech/tags/sql.md>), [verification](<https://devfeed.tech/tags/verification.md>)

## AI overview

Successful SQL execution does not establish that a fixed query still matches revised business definitions. The study tests an executable profile that binds a requested revision and knowledge cutoff to legal counterexample data and exact monetary comparisons. In a preregistered confirmation across 32 authored revision families and two local producer bundles, 192 query-definition cells included 144 nonconforming, 36 finite-suite-agreeing, and 12 unresolved cases; 63 nonconforming cells still agreed on the current snapshot. With eight ledgers, obligation-guided checking found 137 discrepancies versus 127 for generic ordering, a paired gain of 6.9 percentage points (95% interval 2.1-13.6; p=0.0156). No ledger arm rejected any of the 36 agreeing cells. The observed benefit tracked coverage rather than revision-specific priority. A legal discrepancy refutes conformance, while agreement applies only to the recorded suite. Findings are limited to the authored schema and local-model scope.

## Source excerpt

arXiv:2610.41090v1 Announce Type: new 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.