Skip to content

Dataset · motherduckdb

25k synthetic text-to-SQL pairs for DuckDB

motherduckdb/duckdb-text2sql-25k

A collection of English natural language queries, database schemas, and SQL queries tailored to DuckDB syntax.

What's inside

The dataset contains 25,000 English text-to-SQL pairs generated by the Mixtral 8x7B model based on DuckDB v0.9.2 documentation and adapted Spider schemas with nested data types. Each example includes a text query, an optional database schema, the final SQL query, and a category label.

What you can do with it

  • SFT fine-tuning of LLMs for generating SQL queries in DuckDB syntax (Text-to-SQL)
  • Testing models on handling complex and nested data types in SQL
Languages
English
Size
10K–100K rows
Downloads this month
213
Likes
43

How to load it

from datasets import load_dataset

ds = load_dataset("motherduckdb/duckdb-text2sql-25k")