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. Saturation forecast: Around March 2027. 96 models tracked. Updated 8 Apr 2026.
Top models
| # | Model | Score | Overall rank |
|---|---|---|---|
| 1 | DeepSeek V3 Chat | 80 | #971 |
| 2 | Gemini 2.5 Flash (Preview 05-20) | 77.3 | #436 |
| 3 | Claude 3.5 | 77.3 | |
| 4 | Claude Sonnet 4.5 | 74.7 | #278 |
| 5 | GPT-4.1 | 74.7 | #539 |
| 6 | DeepSeek R1 | 74.7 | #507 |
| 7 | GPT-4o (2024-11-20) | 74.7 | #910 |
| 8 | Claude 3.7 Sonnet | 73.3 | #482 |
| 9 | O3 Mini | 72 | #547 |
| 10 | GPT-OSS-120B | 70.7 | #731 |
| 11 | Mistral Small 3 | 70.7 | #1837 |
| 12 | O1 Preview | 70.7 | #513 |
| 13 | Codestral (2501) | 70.7 | #1688 |
| 14 | DeepSeek V3 (0324) | 69.3 | #757 |
| 15 | O1 | 69.3 | #420 |
No result here: #2 Claude Fable 5.2, #5 GPT-6.2 Astra, #6 Gemini 4 Neon.
Example tasks
what are the top domains being shared on hacker_news?
Interactive version: theaggregate.ai/benchmark?slug=duckdb-nsql · How It Works · Data refreshed daily, snapshot 2026-12-04.