sql-create-context b-mc2
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.
- 类型
- dataset
- 许可
- cc-by-4.0
- 语言
- en
- 下载量
- 9,231
- 点赞
- 503
- 访问
- public
- 文件
- 0
标签
- 代码数据
- 指令微调
- 问答
- 代码生成
- 大语言模型
- 文本数据集
- 数据集
摘要
该数据集基于WikiSQL和Spider构建,包含78,577条自然语言查询、SQL CREATE TABLE语句及对应SQL答案的配对示例。其核心设计是为text-to-sql大语言模型提供建表语句作为上下文,以抑制模型在生成SQL时对表和列名的幻觉。该数据集通过SQLGlot对查询进行清洗和数据类型推断,可作为SQL生成模型的指令微调语料,适用于Table问答和代码生成任务。
README
--- license: cc-by-4.0 task_categories: - text-generation - question-answering - table-question-answering language: - en tags: - SQL - code - NLP - text-to-sql - context-sql - spider - wikisql - sqlglot pretty_name: sql-create-context size_categories: - 10K<n<100K --- #### 概述 本数据集构建自 [WikiSQL](http…