Skip to content

BASIL-W: Scope-Aware Evidence for Text-to-SQL Selection

Anup Roy, Rishabh Gyanendra Upadhyay, Animesh Rameshbhai Panara, Aidan Philip Millar, Larry Murray, Robin Mills

cs.AI

Abstract

Execution feedback can mislead text-to-SQL selectors when incomplete query outputs are treated as conclusive evidence. BASIL-W represents observations as scope-aware witnesses containing the executed SQL, its output, completion status, and certified scope. An absence claim requires a completed check covering the claimed predicate and domain. A 2x2 factorial experiment varies scope metadata and an explicit instruction while holding the model, candidates, and probes fixed. On the full Spider and WikiSQL test splits with GPT-4.1, execution accuracy increases from 85.98% to 88.50% and from 90.50% to 91.60% (all six paired contrasts Holm-adjusted p<0.006). The combined interface outperforms either factor alone. The arm ordering also holds with Qwen2.5-Coder-32B and Llama-3.3-70B and on BIRD dev, where the gain reaches +3.7 percentage points. Observed margins over the strongest matched selection baseline are +1.58 on Spider, +1.76 on BIRD dev, and +0.15 on WikiSQL; these comparisons lack paired uncertainty estimates. The Spider audit found unsupported absence-claim rates of 12.0% for raw evidence and 4.3% for BASIL-W. The design does not isolate scope content from prompt length or presentation, and the audit does not establish a causal mechanism.

Create a lesson