cs.AINov 26, 2026

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

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

Organizations: Inception42, Abu Dhabi, UAE · Mubadala Investment Company, Abu Dhabi, UAE

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.

Figures & tables

Explore similar work

CardsList
  1. SIRIUS-SQL: Anchoring Multi-Candidate Text-to-SQL in Execution Feedback

    May 31, 2026Leo Luo, Haining Xie, Siqi Shen +8Execution-Guided Text-to-SQLLLM Reranking

  2. PExA: Parallel Exploration Agent for Complex Text-to-SQL

    Apr 24, 2026Tanmay Parekh, Ella Hofmann-Coyle, Shuyi Wang +3LLM Inference EfficiencyText-to-SQL