nl2sql
deepseek_ai_deepseek_coder_v2_lite_instruct-nl2sqlpp-16bit-v4.0-cw-4K-GGUFcdlm-7-ko-nl2sql-v1.0-i1-GGUFcdlm-7-ko-nl2sql-v1.0-GGUFhaes95_-_cdlm-7-ko-nl2sql-v1.0-ggufNL2SQL_Qwen2.5-Coder-32B-Instruct-GGUFDeepSeek-NL2SQL-33B-GGUFQwen2.5-Coder-14B-Instruct-nl2sql_bird-GGUFNL2SQL_Qwen2.5-Coder-32B-Instruct_v2-GGUF
Datasets
All datasets matching “nl2sql”NL2SQL-Queriesnl2sql-deduplicated
NL2SQL Deduplicated Training Dataset
A curated and deduplicated Text-to-SQL training dataset with 683,015 unique examples from 4 high-quality sources.
📊 Dataset Summary
Total Examples: 683,015 unique question-SQL pairs
Sources: Spider, SQaLe, Gretel Synthetic, SQL-Create-Context
Deduplication Strategy: Input-only (question-based) with conflict resolution via quality priority
Conflicts Resolved: 2,238 cases where same question had different SQL
SQL Dialect: Standard SQL… See the full description on the dataset page: https://huggingface.co/datasets/AsadIsmail/nl2sql-deduplicated.NL2SQL_zh整合了3个中文数据集:追一科技NL2SQL,西湖大学的CSpider中文翻译,百度的DuSQL。
进行了大致的清洗,以及格式转换(alpaca):
假设你是一个数据库SQL专家,下面我会给出一个MySQL数据库的信息,请根据问题,帮我生成相应的SQL语句。当前时间为2023年。格式如下:{'sql':sql语句}
MySQL数据库数据库结构如下:\n{表名(字段名...)}\n 其中:\n{表之间的主外键关联关系}\n 对于query:“{问题}”,给出相应的SQL语句,按照要求的格式返回,不进行任何解释。
其中,DuSQL最终结果是25004个。NL2SQL最终结果45919个,注意表名是乱码。CSpider,最终结果7786条,注意数据库是英文的,问题是中文的。
最终形成的文件,一共78706条,文件样例:
{
"instruction": "假设你是一个数据库SQL专家,下面我会给出一个MySQL数据库的信息,请根据问题,帮我生成相应的SQL语句。当前时间为2023年。",
"input":… See the full description on the dataset page: https://huggingface.co/datasets/lorinma/NL2SQL_zh.spider2-nl2sql
Dataset Details
Dataset Description
This dataset consists of data for the purpose of training a model to generate SQL code in response to a natural language prompt.
The qa.csv table consists of these pairs, while the <dbms>_ddl.csv tables consist of the DDLs and sample data needed to verify the validity of generated SQL queries.
Dataset Sources: Spider2
Repository
Paper
DS-NL2SQL
DS-NL2SQL: A Benchmark for Dialect-Specific NL2SQL
Paper: Dial: A Knowledge-Grounded Dialect-Specific NL2SQL SystemCode Repository: weAIDB/Dial
Dataset Overview
Existing Text-to-SQL benchmarks (such as Spider and BIRD) predominantly focus on SQLite-compatible syntax, failing to capture the syntax specificity and heterogeneity inherent in real-world enterprise database dialects. To bridge this gap, we introduce DS-NL2SQL, a high-quality, multi-dialect NL2SQL benchmark… See the full description on the dataset page: https://huggingface.co/datasets/zhangxiang666/DS-NL2SQL.nl2sql
