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 January 2027. 99 models tracked.

Top models

#ModelScoreOverall rank
1DeepSeek V3 Chat80#447
2Gemini 2.5 Flash (Preview 05-20)77.3#216
3Claude Sonnet 4.574.7#142
4GPT-4.174.7#248
5DeepSeek R174.7#251
6GPT-4o (2024-11-20)74.7#381
7Claude 3.7 Sonnet73.3#249
8O3 Mini72#272
9GPT-OSS-120B70.7#341
10Mistral Small 370.7#627
11O1 Preview70.7#193
12DeepSeek V3 (0324)69.3#340
13O169.3#183
14Claude 3.5 Sonnet68#350
15Qwen 2.5 Coder 32B Instruct68#528

No result here: #3 Claude Opus 5.5, #6 GPT-6 Astra, #7 GPT-6.1 Sol.

Interactive version: theaggregate.ai/benchmark?slug=duckdb-nsql · How It Works · Data refreshed daily, snapshot 2026-10-20.