Evaluates a Text-to-SQL framework's ability to generate correct and efficient SQL queries from natural language questions across complex, cross-domain databases. It probes schema filtering, multi-generator candidate creation, and selection robustness. Use when the user wants to benchmark on BIRD, Spider, or asks about evaluating this task. Reports Execution Accuracy (EX).
Scanned 9/11/2026
Install to Claude Code
npx -y skills add qhjqhj00/research-skills-pool --skill xiyan-sql-eval --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Xiyan Sql Eval?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/qhjqhj00-xiyan-sql-eval)More formats (shields.io, HTML) on the badges page.
---
name: xiyan-sql-eval
description: Evaluates a Text-to-SQL framework's ability to generate correct and efficient SQL queries from natural language questions across complex, cross-domain databases. It probes schema filtering, multi-generator candidate creation, and selection robustness. Use when the user wants to benchmark on BIRD, Spider, or asks about evaluating this task. Reports Execution Accuracy (EX).
metadata:
skill_kind: dataset_eval
source_arxiv: 2507.04701
bibtex_key: liu2025xiyansql
confidence: high
---
# xiyan-sql-eval
> XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQL — Liu et al. (2025) (arXiv:2507.04701, 2025)
## What this evaluates
Evaluates a Text-to-SQL framework's ability to generate correct and efficient SQL queries from natural language questions across complex, cross-domain databases. It probes schema filtering, multi-generator candidate creation, and selection robustness.
## Datasets
- **BIRD** — total 12751; splits: train (9428), dev (1534), test (1789)
- **Spider** — total 10181; splits: train (8659), dev (1034), test (2147)
## Metrics
- `Execution Accuracy (EX)` **(primary)** — range: percent
- The percentage of predicted SQL queries whose execution results exactly match the ground-truth SQL query execution results. Calculated as (correct predictions / total predictions) * 100. Note that execution rules differ slightly between BIRD and Spider.
- `Reward-based Valid Efficiency Score (R-VES)` — range: percent
- An adjusted metric introduced in the latest BIRD version that evaluates both the accuracy and the runtime efficiency of correctly predicted SQL queries.
## Input / output format
**Input**: Natural language question and database schema (represented in M-schema format, optionally filtered by a schema filter module).
**Output**: A single SQL query per question.
## Scoring recipe
```python
def compute_ex(predictions, gold_sqls, databases):
correct = 0
for pred, gold, db in zip(predictions, gold_sqls, databases):
if execute(pred, db) == execute(gold, db):
correct += 1
return (correct / len(predictions)) * 100
```
## Common pitfalls
- Execution Accuracy (EX) calculation differs slightly between the BIRD and Spider benchmarks, so implementations must follow each benchmark's specific execution rules.
- R-VES is exclusive to the BIRD benchmark and evaluates both correctness and runtime efficiency, not just logical equivalence.
- Omitting the schema filter module causes a ~1.24% drop in EX, so full-schema baselines are not directly comparable to filtered ones.
## Evidence (verbatim from paper)
> Following the previous studies, we use Execution Accuracy (EX) to evaluate the performance of Text-to-SQL methods. Since an SQL query can be expressed in various forms, EX is used to assess the validity of the predicted SQL query and to determine whether the execution results are consistent with the ground-truth SQL query. It should be noted that there are slight differences in the calculation of the Execution Accuracy between the BIRD and Spider benchmarks; however, their overall objective remains consistent.
## Citation
```bibtex
@misc{liu2025xiyansql,
title={XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQL},
author={Liu et al. (2025)},
year={2025},
note={arXiv:2507.04701}
}
```
- arXiv: 2507.04701
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!