datasets
Training and evaluation data, with the modality, task and licence stated up front. Listed live from the Hugging Face Hub.
sql-create-context
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/b-mc2/sql-create-context.sql-spider-kaggledbqa-with-contextsql-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-create-context-copy
Fork of b-mc2/sql-create-context
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… See the full description on the dataset page: https://huggingface.co/datasets/philschmid/sql-create-context-copy.CSpider_and_DUSQL_sql_create_context此数据集原始数据集是合并CSpider和DUSQL。根据b-mc2/sql-create-context所创建。
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-id
Overview
This dataset is a fork from sql-create-context
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… See the full description on the dataset page: https://huggingface.co/datasets/detakarang/sql-create-context-id.CSpider_sql_create_context此数据集原始数据集是CSpider。根据b-mc2/sql-create-context所创建。
sql-create-context-spider-intersecttext-2-sql-with-context
Dataset Card for "text-2-sql-with-context"
This dataset is prepared in Alpaca format introduced by Stanford to train LLMs. This dataset has been used in fine-tuning Chat Llama-2 7B. For more information, Please visit : Huggingface.
b-mc2-sql-create-context
Dataset Card for "b-mc2-sql-create-context"
More Information needed
sql-create-context
Overview
This dataset is filtered from b-mc2/sql-create-context.
Dataset Details
Dataset Description
I used sqlglot to make sure that each answer and context from the original dataset was parseable.
Dataset Sources
Original unfiltered dataset: b-mc2/sql-create-context, which in turn is built on WikiSQL and Spider.
sql-create-context-v2
sql-create-context-v2 Dataset
Overview
The sql-create-context-v2 dataset enhances the original dataset built from WikiSQL and Spider, focusing on text-to-SQL tasks with a special emphasis on reducing hallucination of column and table names. This version introduces a JSONL format for more efficient data processing and iteration, alongside a structured approach to representing SQL queries in the dataset entries.
Key Enhancements
Dataset Format: Transitioned to… See the full description on the dataset page: https://huggingface.co/datasets/ramachetan22/sql-create-context-v2.sql-create-context-thai
Overview
This dataset builds from sql-create-context.
@misc{b-mc2_2023_sql-create-context,
title = {sql-create-context Dataset},
author = {b-mc2},
year = {2023},
url = {https://huggingface.co/datasets/b-mc2/sql-create-context},
note = {This dataset was created by modifying data from the following sources: \cite{zhongSeq2SQL2017, yu2018spider}.},
}
sql-create-context-insHello. This is forked version of b-mc2/sql-create-context.
In this repo instead of having context, all context text migrated as a part of question.
You can use this dataset to finetune your model for test2sql tasks.
Use With datasets Of HuggingFace
First install libs:
pip install -Uq datasets huggingface_hub
Load the dataset:
from datasets import load_dataset
ds = load_dataset('erfanvaredi/sql-create-context-ins')
ds
Output:
DatasetDict({
train: Dataset({
features:… See the full description on the dataset page: https://huggingface.co/datasets/erfanvaredi/sql-create-context-ins.sql-create-context-mini
SQL Create Context (mini) — 300 train / 200 eval
A curated, deduplicated 500-row split of
b-mc2/sql-create-context
used to LoRA-fine-tune Qwen3.5-2B for Text-to-SQL.
Schema
Each row has three string fields:
field
description
schema
A CREATE TABLE ... statement (SQLite-flavoured)
question
Natural-language question
answer
Gold SQL query
Splits
split
rows
train
300
eval
200
Provenance
Filtered to… See the full description on the dataset page: https://huggingface.co/datasets/George1123/sql-create-context-mini.sql-create-context
Dataset Card for "sql-create-context"
More Information needed
sql-create-context-modified
Dataset Card for "sql-create-context-modified"
More Information needed
sql-create-context
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/sql-create-context.a1_code_sql_create_context_1744691318_eval_1331
mlfoundations-dev/a1_code_sql_create_context_1744691318_eval_1331
Precomputed model outputs for evaluation.
Evaluation Results
Summary
Metric
AIME24
AMC23
MATH500
GPQADiamond
JEEBench
MMLUPro
LiveCodeBench
CodeElo
Accuracy
9.7
40.0
52.0
26.9
20.4
28.4
11.7
4.3
AIME24
Average Accuracy: 9.67% ± 1.20%
Number of Runs: 10
Run
Accuracy
Questions Solved
Total Questions
1
6.67%
2
30
2
16.67%
5
30
3
16.67%
5
30
4
6.67%
2
30… See the full description on the dataset page: https://huggingface.co/datasets/mlfoundations-dev/a1_code_sql_create_context_1744691318_eval_1331.sql-create-context-llama2-78kThis is dataset contain (78k samples) of the excellent b-mc2/sql-create-context and changed to derekiya/sql-create-context-llama2-78k dataset,
processed to match Llama 2's prompt format as described in this article.
Useful if you don't want to reformat it by yourself (e.g., using a script). It was designed for this article about fine-tuning a Llama 2 (chat)
sql_create_context-v4-mssql-instructsql-create-context
SQL Code
This is a cleansed version of b-mc2/sql-create-context
Usage
from datasets import load_dataset
dataset = load_dataset("Sharathhebbar24/sql-create-context", split="train")
sql-context-instructions
Dataset Card for "sql-context-instructions"
More Information needed
sql-create-contextsql-create-context-instructionA reformatted version of bugdaryan/sql-create-context-instruction into both a multiturn config conversation and completion config config.
A v4 UUID doc_id is shared across the same document in each config, source, conversation, and completion.
ols-sql-context-2k
ols-sql-context-2k
Processed by the OLS Dataset Preparation Pipeline.
Dataset Details
Field
Value
Source
b-mc2/sql-create-context
Rows
2000
Augmentation
none
Recipe Target
text_to_sql
OLS Project
my-project
Processed
2026-03-17
License
CC-BY-4.0
About OLS
Optimal Living Systems is a mutual aid nonprofit
building open-source AI infrastructure for community organizations.
This dataset is part of the OLS AI Lab training data stack.
sql-create-context-mini
SQL Create Context (mini) — 300 train / 200 eval
A curated, deduplicated 500-row split of
b-mc2/sql-create-context
used to LoRA-fine-tune Qwen3.5-2B for Text-to-SQL.
Schema
Each row has three string fields:
field
description
schema
A CREATE TABLE ... statement (SQLite-flavoured)
question
Natural-language question
answer
Gold SQL query
Splits
split
rows
train
300
eval
200
Provenance
Filtered to… See the full description on the dataset page: https://huggingface.co/datasets/Vicen-te/sql-create-context-mini.sql_create_context-v4-mssql-instruct_v1.0sql-context-splitted
