AskWise: Execution-Guided Clarification of Intent and Data in Text-to-SQL
Yuru Liang, Guangyinan Mei, Miles Fan
Abstract
Two interpretations of a database question can agree on the observed records and diverge after a correction. A single record can therefore determine whether the user needs to clarify their intent. AskWise executes candidate queries across possible repairs. It asks about a choice only when two executions differ in that choice alone and give different answers. Once all surviving combinations give the same known answer, it returns that answer. For Boolean answers on a uniform binary cube, we derive an exact bound on the difference in EC2 gain between two questions from partial execution results. Across 120 sales tasks spanning three query types, the bound reduces mean executions per episode from 14.88 to 13.80 relative to a partition relaxation. Asking at the first sign that a choice matters uses 13.18 executions and 0.025 more questions per episode. On AmbiQT, a controlled value swap separates the reference queries in 424 of 1,206 eligible cases. On 155 sampled questions, pruning the same model candidates across both database states raises recall of reference answer signatures by 8.71 percentage points for Doubao Lite and 10.00 for GPT Sol.
Create a lesson
Related papers
Bounded Treewidth Rulesets Are Not Finitely Controllable
Piotr Ostropolski-Nalewaja, Michaël Thomazo
Highly Efficient Vertical Federated Clustering with Triangle-Inequality-based Pruning
Feiteng Nie, Shengkun Zhu, Zepeng Liu et al.
Testability of Homomorphism Inadmissibility: Property Testing Meets Database Theory
Hubie Chen, Yuichi Yoshida
Federated KPI Aggregation with Local Privacy Constraints and Coordinated OLAP Roll-Ups
Felix Härer
Bridging the Discovery Gap in Solid Dataspaces with a Semantic Data Catalog
Florian Hölken, Alexander Paulus, Tobias Meisen et al.
GenSPARQL: A Generative Extension of SPARQL for Incomplete Knowledge Graphs
Jingcheng Wu, Yi Wang, Hongkuan Zhou et al.