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.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.
sql-create-context-pt
Overview
Este dataset é uma versão traduzida para o português do dataset b-mc2/sql-create-context,
que foi construído a partir dos datasets WikiSQL e Spider. Ele contém exemplos de perguntas
em português, instruções SQL CREATE TABLE e consultas SQL que respondem às perguntas
utilizando a instrução CREATE TABLE como contexto.
O principal objetivo deste dataset é ajudar modelos de linguagem natural em português a gerar consultas
SQL precisas e contextualizadas, prevenindo a… See the full description on the dataset page: https://huggingface.co/datasets/emdemor/sql-create-context-pt.sql-create-context-instruction
Overview
This dataset is built upon SQL Create Context, which in turn was constructed using data 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… See the full description on the dataset page: https://huggingface.co/datasets/bugdaryan/sql-create-context-instruction.sql-new-copy
Languages:
English
Data Splits
The following is taken from the corpus' source repsository:
sql-qa-finetune-ds
Overview
This dataset is build from b-mc2/sql-create-context, Clinton/Text-to-sql-v1 and knowrohit07/know_sql.
A total of 148368 examples consist of natural language queries, SQL CREATE TABLE statements, and SQL Query answering the question using the CREATE statement as context.
Next Step
Further augment the data by converting queries and CREATE TABLE statements into different SQL dialects.
Support other informative contexts beyond CREATE TABLE.
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_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.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-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_d14
This dataset is subset of "gretelai/synthetic_text_to_sql"
Data Cleaning
The original dataset get filtered based on the following criteria:
(sql_context + sql) Validate against the SQLite database.
Tables must have some records.
We must get some output after running the "sql" query.
Subset Creation
I picked 3 sql complexity and 14 domains to create a subset.
SQL_COMPLEXITY = ['basic SQL', 'aggregation','single join']
DOMAINS = [
"technology", "sports", "logistics"… See the full description on the dataset page: https://huggingface.co/datasets/djagatiya/synthetic_text_to_sql_d14.sql-script-transform
Sql Transform
This dataset card aims to be a base template for new datasets. It has been generated using this raw template.
Dataset Details
Dataset Description
Curated by: [More Information Needed]
Funded by [optional]: [More Information Needed]
Shared by [optional]: [More Information Needed]
Language(s) (NLP): [More Information Needed]
License: [More Information Needed]
Dataset Sources [optional]
text-2-sql_dataset
