A Text-to-SQL Benchmark for Official Statistics
Not on the map. Why?
Abstract (arXiv)
Official statistics are critical datasets for a wide variety of actors, including policymakers and businesses. For providers of official statistics, improving accessibility, governance, and disclosure of their data is of key importance. This can be improved by providing question-answering systems based on text-to-SQL approaches. However, existing text-to-SQL benchmarks do not resemble this setting. Official statistics are published as open-domain catalogs of thousands of wide tables whose columns and values are codes, and whose meaning is recorded in separate metadata rather than in a relational schema. To address this gap, we introduce LOCuST, a text-to-SQL benchmark that pairs over two thousand English and Dutch tables from Statistics Netherlands with a semantic knowledge graph. The graph describes the tables, measures, and dimension codes through labels, definitions, hierarchies, and units, and is the external knowledge a system needs to find the right tables and ground a question in the right codes. The benchmark includes expert-annotated questions for different query and aggregation types, including raw value retrieval, summations, proportion calculations, and joins. Alongside standard evaluation measures, we introduce an observation F1 metric that measures how close a query is to the ground truth even when the answers are different. We evaluate a variety of state-of-the-art LLMs and find that they struggle to write SQL that answers the questions correctly.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 11 of its 27 references that are in the map. Submitted 24 Nov 2026, announced 25 Nov 2026.
Builds on
11 of 27 references.
References · 11
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,205
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 747
- 2021ColBERTv2: Effective and Efficient Retrieval via Lightweight Late Interactioncited by 498
- 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 267
- 2020Beyond I.I.D.: Three Levels of Generalization for Question Answering on Knowledge Basescited by 179
- 2024The Dawn of Natural Language to SQL: Are We Fully Ready?cited by 83
- 2024A Survey on Employing Large Language Models for Text-to-SQL Taskscited by 72
- 2024BEAVER: An Enterprise Benchmark for Text-to-SQLcited by 51
- 2024FinSQL: Model-Agnostic LLMs-based Text-to-SQL Framework for Financial Analysiscited by 41
- 2024StatBot.Swiss: Bilingual Open Data Exploration in Natural Languagecited by 7
- 2026TACO: A Benchmark for Open-Domain Text-to-SQL with Ambiguous and Cross-Database Queriescited by 3
Built on by
Not cited yet.