datasets
Training and evaluation data, with the modality, task and licence stated up front. Listed live from the Hugging Face Hub.
synthetic_text_to_sql
Image generated by DALL-E. See prompt for more details
synthetic_text_to_sql
gretelai/synthetic_text_to_sql is a rich dataset of high quality synthetic Text-to-SQL samples,
designed and generated using Gretel Navigator, and released under Apache 2.0.
Please see our release blogpost for more details.
The dataset includes:
105,851 records partitioned into 100,000 train and 5,851 test records
~23M total tokens, including ~12M SQL tokens
Coverage across 100 distinct… See the full description on the dataset page: https://huggingface.co/datasets/gretelai/synthetic_text_to_sql.SQaLe-text-to-SQL-dataset
🧮 SQALE: A Large-Scale Semi-Synthetic Dataset
SQALE is a large-scale, semi-synthetic Text-to-SQL dataset grounded in real-world database schemas.
It was designed to push the boundaries of natural language to SQL generation, combining realistic schema diversity, complex query structures, and linguistically varied natural language questions.
The dataset was introduced in the paper SQaLe: A Large Text-to-SQL Corpus Grounded in Real Schemas. The code for the generation pipeline of this… See the full description on the dataset page: https://huggingface.co/datasets/trl-lab/SQaLe-text-to-SQL-dataset.gretel-synthetic-text-to-sql
Fork of gretelai/synthetic_text_to_sql
The gretelai/synthetic_text_to_sql dataset is a large, Apache 2.0 licensed, synthetic Text-to-SQL dataset consisting of 105,851 high-quality records across 100 diverse domains, designed for training language models. It includes comprehensive SQL tasks with varying complexities, database contexts, natural language explanations, and contextual tags, outperforming existing datasets in SQL correctness and standards compliance.
spider-text-to-sql
Spider Text-to-SQL with LLM-Judge Labels
This dataset extends Spider 1.0 with SQL predictions from gpt-5.4-mini and two correctness labels per example: a hybrid ground truth label and an LLM judge label from gpt-5.4.
Files
File
Description
spider_dataset.parquet
Full dataset with predictions and labels
scripts/
Reproduction scripts (see below)
Dataset statistics
Source: Spider 1.0 training split (train_spider.json)
Databases: the… See the full description on the dataset page: https://huggingface.co/datasets/Glide-py/spider-text-to-sql.Text-to-sql-v1text-to-sql-recipe-data
Text-to-SQL Recipe Data
The datasets the River text-to-SQL reinforcement-learning recipe trains and evaluates on, laid out the way its
setup data command reads them. The recipe checks every file against SHA-256 pins in its code, so use the
command rather than copying files by hand. From the recipe's directory (the text-to-sql example of River Recipes):
pip install '.[data]'
eval "$(python -m text_to_sql_recipe setup data)"
Contents
revisql-verified/:… See the full description on the dataset page: https://huggingface.co/datasets/scottfitz/text-to-sql-recipe-data.SQaLe-2-text-to-SQL-SchemasSQaLe: schemas and databases
Project page ·
Questions and SQL ·
Trained models ·
Python library ·
Citation
This dataset holds the 9,259 populated databases of SQaLe, a large semi-synthetic text-to-SQL dataset grounded in real-world database schemas, introduced in the paper SQaLe: a large realistic dataset to empower small specialised text-to-SQL models. Each row is one database: its DDL, extended from a real schema in SchemaPile, and the generated rows of its tables. The… See the full description on the dataset page: https://huggingface.co/datasets/trl-lab/SQaLe-2-text-to-SQL-Schemas.SQaLe-2-text-to-SQL-QueriesSQaLe: questions and SQL
Project page ·
Schemas and databases ·
Trained models ·
Python library ·
Citation
SQaLe is a large semi-synthetic text-to-SQL dataset grounded in real-world database schemas, introduced in the paper SQaLe: a large realistic dataset to empower small specialised text-to-SQL models. It pairs 1,408,056 natural-language questions with 176,761 distinct SQL queries over 9,259 populated SQLite databases. The schemas come from SchemaPile, a collection of database… See the full description on the dataset page: https://huggingface.co/datasets/trl-lab/SQaLe-2-text-to-SQL-Queries.enterprise-text-to-sql-benchmark
Enterprise Text-to-SQL Benchmark
3,087 natural-language questions paired with executable PostgreSQL, over a
12-table enterprise schema (sales, catalogue, logistics, HR).
Built to answer one question honestly: does fine-tuning actually improve
text-to-SQL? On this benchmark, a QLoRA fine-tune of Qwen3-8B took strict
execution accuracy from 43.71 % to 68.43 %, and 70.86 % with a
self-correction loop — and the benchmark is designed so that number cannot be
inflated by leakage or by… See the full description on the dataset page: https://huggingface.co/datasets/hari-krishna-ai/enterprise-text-to-sql-benchmark.text-to-sql-spider-dataset
Text-to-SQL Dataset
A curated dataset for training text-to-SQL models. This dataset contains natural language questions paired with corresponding SQL queries, formatted for instruction fine-tuning.
📊 Dataset Summary
Total Samples: 20000
Format: Chat template (system/user/assistant messages)
Task: Text-to-SQL generation
Language: English
License: apache-2.0
📁 Dataset Structure
Data Format
Each example contains a conversation with three roles:… See the full description on the dataset page: https://huggingface.co/datasets/chrisjcc/text-to-sql-spider-dataset.Persian-Business-Text-to-SQL-Gold-1K
Persian Business Text-to-SQL Gold-1K
1,000 Persian-native, execution-verified business Text-to-SQL examples for fine-tuning and benchmarking.
مجموعهای ۱۰۰۰ نمونهای برای تبدیل درخواستهای فارسی کسبوکار به SQL، همراه با دیتابیسهای SQLite اجرایی، schema کامل، متادیتای سختی/مهارت و ارزیابی مبتنی بر Execution Accuracy.
Motivation
BIRD emphasizes database-grounded Text-to-SQL and execution accuracy; Spider 2.0 pushes toward realistic enterprise database workflows.… See the full description on the dataset page: https://huggingface.co/datasets/jumplander/Persian-Business-Text-to-SQL-Gold-1K.text-to-sql-mix-v2
🔗 Part of the SQL Agent LLMOps project
This dataset is one of three purpose-built training mixes for the
SQL Agent LLMOps project — an end-to-end pipeline that
converts natural-language questions into SQL, executes the query on user
data, and renders a storytelling-grade visualization.
Dataset
Model trained
Role
🤗 DanielRegaladoCardoso/text-to-sql-mix-v2
Qwen 2.5 Coder 7B
NL question → SQL
🤗 DanielRegaladoCardoso/chart-reasoning-mix-v1Phi-3 Mini 3.8B
(question +… See the full description on the dataset page: https://huggingface.co/datasets/DanielRegaladoCardoso/text-to-sql-mix-v2.text-to-sql-eval-predictions
What the text-to-SQL models actually generated
Every prediction behind the numbers in
qwen3-8b-text2sql-qlora: the 453 test
questions of the enterprise text-to-SQL benchmark,
each answered by four configurations of the same model, each answer executed against the reference
PostgreSQL database and scored by comparing result sets. 1,812 rows.
I published this because the headline table (10.82 % → 50.99 % → 52.10 %) is the least interesting part of
that project. The interesting… See the full description on the dataset page: https://huggingface.co/datasets/hari-krishna-ai/text-to-sql-eval-predictions.text-to-sql-phrasing-robustness
Does sloppy phrasing break text-to-SQL?
The enterprise text-to-SQL benchmark
lists its own biggest caveat: every question is template-generated, so real user phrasing is untested.
This is the test. 35 test questions (one per template), each sent to the deployed
pipeline four ways: as written, with a typo, in business shorthand, and stripped to a terse fragment.
24 questions and 85 answers survive the filter described under Setup; every answer was
executed against the database.… See the full description on the dataset page: https://huggingface.co/datasets/hari-krishna-ai/text-to-sql-phrasing-robustness.synthetic_text_to_sqlsynthetic_text_to_sql_reasoning
Synthetic Text-to-SQL with Reasoning Traces
This dataset is an enhanced version of gretelai/synthetic_text_to_sql with synthetic reasoning traces added using Nemo Data Designer and openai/gpt-oss-120b for generation.
Dataset Description
gretelai/synthetic_text_to_sql is a rich dataset of high quality synthetic Text-to-SQL samples, designed and generated using Gretel Navigator, and released under Apache 2.0.
The original dataset includes:
105,851 records partitioned into… See the full description on the dataset page: https://huggingface.co/datasets/meowterspace45/synthetic_text_to_sql_reasoning.reasoning-sft-synthetic_text_to_sql-128K
synthetic_text_to_sql (converted)
Converted version of gretelai/synthetic_text_to_sql, reformatted to 100,000 rows for reasoning SFT training.
Format
Each row has three columns:
input — list of dicts [{"role": "system", "content": "..."}, {"role": "user", "content": "..."}] (system prompt contains the database schema, user prompt contains the natural language question)
response — response string with <think> reasoning block (SQL explanation) followed by the SQL query… See the full description on the dataset page: https://huggingface.co/datasets/AmanPriyanshu/reasoning-sft-synthetic_text_to_sql-128K.synthetic_text_to_sql_en_es
Dataset basado en la versión de GretelAI - SyntheticSQL
synthetic_text_to_sql_en_es
Se trata de una expansión mediante la traducción al español de la columna 'sql_prompt'.
Se ha añadido una columna extra 'sql_prompt_es' que contiene el prompt original de inglés traducido al español.
Para obtener estas traducciones, se utilizó few-shot prompting + CoT mediante el modelo Qwen/Qwen2.5-32B-Instruct-AWQ
Actualización 6/27/25
En la versión pasada se encontraron… See the full description on the dataset page: https://huggingface.co/datasets/TafcoMetawireless/synthetic_text_to_sql_en_es.synthetic_chat_text_to_sqlText-to-sql-v1pt-br-agentic-text-to-sql-distilled-trajectories
PT-BR Agentic Text-to-SQL Distilled Trajectories
This dataset contains message-only distilled trajectories for training tool-using Text-to-SQL agents in Brazilian Portuguese. The trajectories were selected from LLM-judged correct conversations and preserve the agent protocol used in the released code.
Code and reproducibility repository:
https://github.com/Boakpe/distilled-slms-for-text-to-sql-pt-br
Related collection:… See the full description on the dataset page: https://huggingface.co/datasets/Boakpe/pt-br-agentic-text-to-sql-distilled-trajectories.synthetic-complex-Text-to-SQL
Synthetic Complex Text-to-SQL
Synthetic Text-to-SQL using multiple joins, WHERE statements, window and aggregate functions on filtered SQL from bigcode/the-stack.
text-to-sql-mix-v1
Text-to-SQL Training Mix v1
A curated, deduplicated and quality-filtered mix of six high-quality
text-to-SQL datasets from HuggingFace, designed for fine-tuning code LLMs
(Qwen 2.5 Coder, DeepSeek Coder, Llama-3, etc.) on SQL generation.
This dataset powers the SQL Generator in the SQL Agent LLMOps project.
Schema
Field
Type
Description
id
string
Stable hash-based identifier
instruction
string
Natural language question / instruction
schema_context
string… See the full description on the dataset page: https://huggingface.co/datasets/DanielRegaladoCardoso/text-to-sql-mix-v1.enterprise-sql-text-to-db-sft-dpo-2026
💎 Enterprise SQL, Text-to-DB & Schema-Aware Query Architect SFT/DPO Dataset (2026)
High-precision instruction tuning and preference optimization dataset with step-by-step Chain-of-Thought (<thought>) reasoning chains for fine-tuning LLMs (Llama-3.3, Qwen-2.5-Coder, DeepSeek-R1-Distill, Mistral, Phi-4) into Senior Enterprise Database Architects.
📊 Dataset Overview
Format: OpenAI ChatML & ShareGPT format with <thought> reasoning tokens.
Dialect Coverage (5… See the full description on the dataset page: https://huggingface.co/datasets/beatsprom/enterprise-sql-text-to-db-sft-dpo-2026.synthetic-text-to-sql-tr
Cognipeer/synthetic-text-to-sql-tr
Overview
Cognipeer/synthetic-text-to-sql-tr is a Turkish translation of the gretelai/synthetic_text_to_sql dataset. gretelai/synthetic_text_to_sql is a rich dataset of high quality synthetic Text-to-SQL samples, designed and generated using Gretel Navigator, and released under Apache 2.0.
Dataset Features: The dataset includes 12 main feature:
id (int32)
domain (string)
domain_description (string)
sql_complexity (string)… See the full description on the dataset page: https://huggingface.co/datasets/Cognipeer/synthetic-text-to-sql-tr.synthetic-text-to-sql-tangle
Synthetic Text-to-SQL — Tangle SFT demo subset
A small, fixed subset of gretelai/synthetic_text_to_sql
(Apache-2.0), prepared for an end-to-end supervised fine-tuning showcase running as a
Tangle pipeline.
train.jsonl — first 5,000 rows of the source train split.
eval.jsonl — first 500 rows of the source test split.
train.tiny.jsonl / eval.tiny.jsonl — 16 / 8 rows, for a fast CPU wiring dry-run.
Each row keeps five fields from the source: id, domain, sql_prompt (the… See the full description on the dataset page: https://huggingface.co/datasets/ml-infra-toloka/synthetic-text-to-sql-tangle.text-to-sql-struct-distillation-sft
结构化 Text-to-SQL 蒸馏 SFT(本地通用导出)
这是本项目完整的结构化 Text-to-SQL SFT 导出,共 6,246 条 messages 格式 JSONL 样本;其中正式 Qwen3-8B 实验实际使用的是本仓库中明确标注的 5,160 条训练 split。
文件与划分
qwen_sft_messages.jsonl:全量 SFT,6,246 条。
splits/dbdev4_train_5160.jsonl:正式 Qwen3-8B LoRA 训练集,5,160 条。它是全量教师样本按数据库划分后的子集,对应训练机中的 qwen_sft_messages_train_dbdev4.jsonl。
splits/dbdev4_execution_dev_prompts_400.jsonl:训练期 database-disjoint execution-dev 的 400 条提示词,只含 system/user messages,不含 gold SQL。… See the full description on the dataset page: https://huggingface.co/datasets/craboy4/text-to-sql-struct-distillation-sft.text-to-sql-dataset
English Text‑to‑SQL with Optional Schema
This dataset maps English user questions to SQL queries, with or without a compact database schema provided. The schema, when present, is a minimal representation of the database structure: a comma‑separated list of table names followed by their column names in parentheses. No data types are included.
Dataset Structure
Column
Type
Description
text
string
The user's request in English.
schema
string (optional)… See the full description on the dataset page: https://huggingface.co/datasets/sirunchained/text-to-sql-dataset.smolified-tiny-text-to-sql
🤏 smolified-tiny-text-to-sql
Intelligence, Distilled.
This is a synthetic training corpus generated by the Smolify Foundry.
It was used to train the corresponding model ankita182005/smolified-tiny-text-to-sql.
📦 Asset Details
Origin: Smolify Foundry (Job ID: d3dfc0f1)
Records: 9775
Type: Synthetic Instruction Tuning Data
⚖️ License & Ownership
This dataset is a sovereign asset owned by ankita182005.
Generated via Smolify.ai.
smolified-tiny-text-to-sql
🤏 smolified-tiny-text-to-sql
Intelligence, Distilled.
This is a synthetic training corpus generated by the Smolify Foundry.
It was used to train the corresponding model vardhan-yash/smolified-tiny-text-to-sql.
📦 Asset Details
Origin: Smolify Foundry (Job ID: 4b9509ca)
Records: 320
Type: Synthetic Instruction Tuning Data
⚖️ License & Ownership
This dataset is a sovereign asset owned by vardhan-yash.
Generated via Smolify.ai.
