Structured Context Engineering Evaluates LLM SQL Performance

Damon McMillan publishes a new paper presenting 9,649 experiments on context engineering for structured data, evaluating 11 models and four formats with SQL schemas from 10 to 10,000 tables. The study finds frontier models (Opus 4.5, GPT-5.2, Gemini 2.5 Pro) outperform leading open-source models, and identifies a 'grep tax' for TOON formats increasing token usage. Results inform file-native agent design.
Key Points
- 1Conducts 9,649 experiments across 11 models, 4 formats, and schemas up to 10,000 tables
- 2Finds frontier models (Opus 4.5, GPT-5.2, Gemini 2.5 Pro) substantially outperform open-source models
- 3Shows TOON format incurs a 'grep tax' increasing token usage; practitioners must adapt retrieval or formats
Scoring Rationale
Comprehensive multi-model, large-scale experiments drive score, but single-source paper limits peer-reviewed credibility and depth on filesystem retrieval could be expanded.
Sources
Public references used for this report.
Practice with real Logistics & Shipping data
90 SQL & Python problems · 15 industry datasets
250 free problems · No credit card
See all Logistics & Shipping problems

