Tinybird AI SQL Benchmark - First-Attempt Success Rate: leaderboard

Tinybird's LLM SQL benchmark has each model write SQL for 50 natural-language analytical questions over a 200M-row GitHub Archive table in Tinybird. This is the percentage of questions whose first generated query executes without error, before any error-feedback retry; higher is better.

Metric: Questions answered with a valid query on the first attempt (%). Source: llm-benchmark.tinybird.live. Saturation forecast: Around February 2027. 405 models tracked.

Top models

#ModelScoreOverall rank
1Claude Sonnet 4.5100#148
2Claude Sonnet 4.6100#94
3GPT-4.1100#258
4Kimi K2.5100#152
5Claude Opus 4.7100#51
6Grok 4100#189
7Gemma 4 31B (IT)100#178
8Claude Opus 4.8100#39
9Gemini 3 Flash (Preview)100#90
10Qwen 3.6 Plus100#124
11Gemini 3.5 Flash100#66
12Qwen 3 Next 80B A3B Instruct100#381
13GLM-5.2100#80
14Gemini 3.1 Flash Lite100#200
15Gemini 3.1 Flash Lite (Preview)100#201

No result here: #6 GPT-6 Astra.

Interactive version: theaggregate.ai/benchmark?slug=tinybird-ai-sql-benchmark-first-attempt-success-rate · How It Works · Data refreshed daily, snapshot 2026-11-05.