cs.DBMar 4, 2026

SpotIt+: Verification-based Text-to-SQL Evaluation with Database Constraints

Authors: Andrew Tremante, Yang He, Rocky Klopfenstein, Yuepeng Wang, Nina Narodytska, Haoze Wu

Organizations: ∗Amherst College · †Simon Fraser University · ‡VMware Research by Broadcom

Abstract

We present SpotIt+, an open-source tool for evaluating Text-to-SQL systems via bounded equivalence verification. Given a generated SQL query and the ground truth, SpotIt+ actively searches for database instances that differentiate the two queries. To ensure that the generated counterexamples reflect practically relevant discrepancies, we introduce a best-effort constraint-mining pipeline that combines rule-based specification mining with LLM-based validation over example databases. Experimental results on the BIRD dataset show that the mined constraints enable SpotIt+ to generate more realistic differentiating databases, while preserving its ability to efficiently uncover numerous discrepancies between generated and gold SQL queries that are missed by standard test-based evaluation.

Figures & tables

Explore similar work

CardsList
  1. SQLStructEval: Structural Evaluation of LLM Text-to-SQL Generation

    Apr 8, 2026Yixi Zhou, Fan Zhang, Zhiqiao Guo +4Text-to-SQL EvaluationText-to-SQL

  2. TraceSQL: Traceable Answerability Estimation for Reference-Free Text-to-SQL Verification

    Aug 18, 2026Neelesh Kumar Shukla, Debasmita Panda, Srutanik Bhaduri +3Text-to-SQLInterpretable ML