datasets
Training and evaluation data, with the modality, task and licence stated up front. Listed live from the Hugging Face Hub.
RBAC-Text2SQL-Benchmark
RBAC-Text2SQL Benchmark
Role-conditioned Text-to-SQL instances for evaluating whether LLMs generate SQL that
respects Role-Based Access Control (RBAC) constraints. Each instance pairs a natural
language question with a role policy; the model must either produce a correct SQL query
that touches only authorized resources, or refuse with Sorry, I cannot answer.
Code, evaluation harness, and reproduction instructions:
https://github.com/2020dfff/RBAC-Text2SQL-Benchmark… See the full description on the dataset page: https://huggingface.co/datasets/sharkiefff/RBAC-Text2SQL-Benchmark.large-schema-text2sql-20k
Large-Schema Text-to-SQL (20K)
20,020 text-to-SQL examples whose median database schema has 95 tables.
Most text-to-SQL corpora hand the model a toy database. Spider averages about 5 tables per
database; BIRD is in the same range. Real analytics work does not look like that — it looks
like an ERP schema with 200 tables, 300 foreign keys, and eleven things called *_log, where
the hard part is not writing the JOIN but finding the two tables worth joining.
This dataset is that… See the full description on the dataset page: https://huggingface.co/datasets/VikramPal/large-schema-text2sql-20k.text2sql-dataset
Dataset
We built this dataset from several sources combining examples from:
Wikisql
Bird
Spider
Synthetic SQL samples
This dataset has been cleaned and filtered by:
Removing DDL/DML examples (INSERT, UPDATE, DELETE, etc.)
De-duplicating examples based on hashing semantics of SQL and queries
Filtering only SELECT-style analytical queries
text2sql-oracle-postgres
Oracle / PostgreSQL text-to-SQL
Instruction data for fine-tuning google/gemma-3-270m-it (or any chat model) to emit a single dialect-correct SQL statement.
804 rows, 402 Oracle / 402 PostgreSQL
7 schemas: hr, sales, banking, inventory, tickets, university, logistics
Splits: 684 / 60 / 60 (grouped so paraphrases of the same SQL stay in one split)
Load
from datasets import load_dataset
ds = load_dataset("chabab/text2sql-oracle-postgres")
Record… See the full description on the dataset page: https://huggingface.co/datasets/chabab/text2sql-oracle-postgres.synthetic-text2sql-dataset
Dataset Card for "synthetic-text2sql-dataset"
Dataset Summary
The synthetic-text2sql-dataset is a large-scale, structured dataset containing 100,000 training and 5,851 test examples designed to support research and development in SQL semantic parsing, text-to-SQL generation, and chain-of-thought (CoT) reasoning.
It was derived from an original DataFrame and converted into Hugging Face's datasets.Dataset format. Three new fields were added:
question: alias for the… See the full description on the dataset page: https://huggingface.co/datasets/eagle0504/synthetic-text2sql-dataset.wikisql-text2sql
WikiSQL Text-to-SQL (execution-ready)
A cleaned, execution-ready repackaging of WikiSQL
for text-to-SQL fine-tuning and execution-accuracy evaluation. Each example pairs a
natural-language question with a gold SQL query over a single-table schema — and every split
ships a real SQLite database so predicted SQL can be run and compared by result set
(not string-matched).
Splits
Split
Examples
train
55,339
dev
8,263
test
15,519
Columns… See the full description on the dataset page: https://huggingface.co/datasets/mohamed-ahmed-58059/wikisql-text2sql.bird-text2sql-bench
Dataset Card for bird-text2sql-bench
bird-text2sql-bench 是 BIRD(BIg Bench for Large-Scale Database Grounded Text-to-SQL) 官方訓練集之 OpenAI Messages 格式版本,共 9,428 筆。相較於 Spider 1.0,BIRD 使用真實大型資料庫(70 個,涵蓋電商、運動、教育、醫療等 37+ 領域),並提供 evidence(數值提示)欄位,本資料集將 evidence 以 ### Hint 段落併入 user prompt,形成可直接餵入 SFT pipeline 之 system / user / assistant 三 role 對話。除原生之 messages 欄位外,另拆解出獨立之 system / user / assistant 字串欄位,可同時作為 SFT 語料與 benchmark evaluation pipeline 之直接輸入。
Dataset Details… See the full description on the dataset page: https://huggingface.co/datasets/lianghsun/bird-text2sql-bench.text2sql-dataset
Overview
This dataset builds from WikiSQL and Spider.
There are 78,577 examples of natural language queries, SQL CREATE TABLE statements, and SQL Query answering the question using the CREATE statement as context. This dataset was built with text-to-sql LLMs in mind, intending to prevent hallucination of column and table names often seen when trained on text-to-sql datasets. The CREATE TABLE statement can often be copy and pasted from different DBMS and provides table names, column… See the full description on the dataset page: https://huggingface.co/datasets/dipanjanS/text2sql-dataset.spider-text2sql-bench
Dataset Card for spider-text2sql-bench
spider-text2sql-bench 是 Spider 1.0 官方訓練集之 OpenAI Messages 格式版本,共 7,000 筆,將原始之 question / schema / sql 重新組裝為 system / user / assistant 三 role 之對話結構。除原生之 messages 欄位外,另拆解出獨立之 system / user / assistant 字串欄位,可作為 Text-to-SQL 模型之 SFT 訓練語料,亦可直接用於 benchmark evaluation pipeline(以 user 作為 prompt,比對模型輸出與 assistant 之標準答案 SQL)。
Dataset Details
Dataset Description
Spider 1.0 為 Yale LILY Group 於 EMNLP 2018 發表之大規模跨領域 Text-to-SQL… See the full description on the dataset page: https://huggingface.co/datasets/lianghsun/spider-text2sql-bench.text2sql-canonical-v3.1
text2sql-canonical-v3.1
Training data for a SQLite text-to-SQL model: 51,976 training rows and
a 527-row validation split. Each row holds a database schema rendered
as text, a natural-language question, an optional evidence hint, and
the reference SQL. The mix caps synthetic data at 40 percent and gives
real benchmark rows double weight.
Split
Rows
BIRD
Spider
SynSQL
train
51,976
33%
27%
40%
val
527
34%
27%
40%
Columns
db_id, question, gold_sql… See the full description on the dataset page: https://huggingface.co/datasets/mohamed-ahmed-58059/text2sql-canonical-v3.1.enterprise-text2sql-curated-600
🚀 Enterprise Text-to-SQL & Analytical BI (Verbose CoT Reasoning)
This dataset contains 600 curated training records with in-depth, verbose 4-phase <Thinking> Chain-of-Thought reasoning, 100 frozen evaluation benchmark samples, and 50 frozen regression verification samples formatted in standard ChatML (messages) and Prompt-Target pairs, strictly following the Pioneer / Prometheus research paper 3-slice curriculum design.
📊 Dataset Composition & 3-Slice Breakdown… See the full description on the dataset page: https://huggingface.co/datasets/StarsMakeGalaxy/enterprise-text2sql-curated-600.
