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

#ModelScoreOverall rank
1DeepSeek V3 Chat80#971
2Gemini 2.5 Flash (Preview 05-20)77.3#436
3Claude 3.577.3
4Claude Sonnet 4.574.7#278
5GPT-4.174.7#539
6DeepSeek R174.7#507
7GPT-4o (2024-11-20)74.7#910
8Claude 3.7 Sonnet73.3#482
9O3 Mini72#547
10GPT-OSS-120B70.7#731
11Mistral Small 370.7#1837
12O1 Preview70.7#513
13Codestral (2501)70.7#1688
14DeepSeek V3 (0324)69.3#757
15O169.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?

Source

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