DuckDB-NSQL — leaderboard
SQL generation benchmark using DuckDB: 75 questions across easy, medium, and hard difficulty testing natural-language-to-SQL translation with execution accuracy.
Metric: Execution Accuracy (%). Source: huggingface.co. Status: saturation imminent. 99 models tracked.
Top models
| # | Model | Score |
|---|---|---|
| 1 | DeepSeek V3 Chat | 80 |
| 2 | Gemini 2.5 Flash (Preview 05-20) | 77.3 |
| 3 | GPT-4.1 | 74.7 |
| 4 | Claude Sonnet 4.5 | 74.7 |
| 5 | DeepSeek R1 | 74.7 |
| 6 | GPT-4o (2024-11-20) | 74.7 |
| 7 | Claude 3.7 Sonnet | 73.3 |
| 8 | O3 Mini | 72 |
| 9 | GPT-OSS-120B | 70.7 |
| 10 | Mistral Small 3 | 70.7 |
| 11 | O1 Preview | 70.7 |
| 12 | DeepSeek V3 (0324) | 69.3 |
| 13 | O1 | 69.3 |
| 14 | Claude 3.5 Sonnet | 68 |
| 15 | Qwen 2.5 Coder 32B Instruct | 68 |
Interactive version: theaggregate.ai/benchmark?slug=duckdb-nsql · How the rankings work · Data refreshed daily, snapshot 2026-07-22.