LLM Reference

The data & sql leaderboard · for knowledge workers

Best for data & sql

Decision area
Reads schemas, writes queries that actually run.
Editor picks
4 editor picks
Eligible models
7 eligible models
See raw /best
EDITOR'S CHOICEResearched 8d ago

GPT-5.5

OpenAI · 1.05m context
Excellent

Reads schemas and writes queries that actually run.

Reads large schemas (1.05M context) and writes SQL that picks the right join and respects dialect quirks, at $5 / $30 per 1M tokens.

The numbers
$/1M out
$30.00
$5.00 input
Context
1.05m
max window
Pros
  • +Top SQL accuracy & reasoning
  • +Good dialect awareness
  • +1M context for big schemas
Cons
  • $30 / 1M out — drop to DeepSeek V4 Pro for high volume

Also worth picking

The runners-up

ranked by editorial pick orderEditorial tiersExcellentStrongSolid
Anthropic · 1m
$15.00 / 1M out
Best at reasoning over messy schemas with hundreds of tables.
DeepSeek · 1m
$0.87 / 1M out
LiveCodeBench leader at $0.87 out — excellent SQL value, open weights.
Google DeepMind · 1m
$5.00 / 1M out
A 1M window fits the whole schema for one-shot exploration.

Eligibility

7 models are eligible for this board

Eligibility means tagged with useCases: [data-sql]. Pins must come from this pool.
All picks