---
title: "Introducing the SQL Console on Datasets"
description: "Hugging Face Hub datasets now have a one-click SQL Console that runs DuckDB WASM entirely in the browser against each dataset's Parquet files, with views created per split and config."
url: "https://swe.quest/articles/introducing-the-sql-console-on-datasets-89aa5e3e1204ae2f"
canonical: "https://huggingface.co/blog/sql-console"
source: "Hugging Face"
published: "2024-09-17"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 5
tags: ["sql","analytics","webassembly","model-training"]
---

# Introducing the SQL Console on Datasets

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2024-09-17, 5 min read, Announcement. Original: [https://huggingface.co/blog/sql-console](https://huggingface.co/blog/sql-console)

## Summary

Hugging Face Hub datasets now have a one-click SQL Console that runs DuckDB WASM entirely in the browser against each dataset's Parquet files, with views created per split and config. Non-Parquet datasets have their first 5GB auto-converted. A simple filter over a 12.6M-row dataset returns in under 3 seconds, but memory is capped at roughly 3GB and DuckDB WASM lacks some DuckDB features such as the hf:// protocol. A worked example uses struct\_pack to convert an Alpaca dataset into conversational format for LLM fine-tuning and exports the results to Parquet.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [SQL](https://swe.quest/tags/sql.md) (Languages)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [WebAssembly](https://swe.quest/tags/webassembly.md) (Languages)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)

## Prerequisites

- SQL basics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))

## Keywords

DuckDB WASM, Hugging Face Hub, Parquet, DuckDB, Alpaca

## Related posts

- [DuckDB: analyze 50,000+ datasets stored on the Hugging Face Hub](https://swe.quest/articles/duckdb-analyze-50-000-datasets-stored-on-the-hugging-face-hub-05ca0d0e06164c0a.md): Hugging Face · 2023-06-07 · Medium · 3 min read · Analytics & OLAP, SQL, Python
  Every public dataset on the Hugging Face Hub is now automatically converted to Parquet by the dataset viewer and can be queried with SQL through DuckDB.
- [Text2SQL using Hugging Face Dataset Viewer API and Motherduck DuckDB-NSQL-7B](https://swe.quest/articles/text2sql-using-hugging-face-dataset-viewer-api-and-motherduck-duckdb-nsql-7b-7024872a0cc79ab7.md): Hugging Face · 2024-04-04 · Medium · 7 min read · LLMs, SQL, Analytics & OLAP, Python
  DuckDB-NSQL-7B, a Llama-2-7B model fine-tuned on general SQL and then DuckDB text-to-SQL pairs, can turn plain-language questions into DuckDB SQL that runs directly against Hugging Face datasets.
- [Visualizing BlueSky data with Evidence.dev](https://swe.quest/articles/visualizing-bluesky-data-with-evidence-dev-2a64305ef654ddec.md): ClickHouse · 2025-01-15 · Medium · 6 min read · Analytics & OLAP, SQL
  Evidence.dev builds dashboards from SQL and markdown, running queries at build time rather than at request time.
- [From Spreadsheets to DuckLake: A Data Engineer's Road to DuckDB](https://swe.quest/articles/from-spreadsheets-to-ducklake-a-data-engineer-s-road-to-duckdb-befcab104cb9bbfa.md): DuckDB · 2026-10-29 · Medium · 6 min read · Analytics & OLAP, Data pipelines, Databases, SQL
  Data engineer Matt Martin traces his path from copy-pasting Excel reports through Teradata, BigQuery and heavyweight Spark clusters to DuckDB, which let him query local CSVs, S3 Parquet files and Iceberg tables in a few lines of SQL with no JVM or cluster.
- [Analyzing Hugging Face datasets with ClickHouse](https://swe.quest/articles/analyzing-hugging-face-datasets-with-clickhouse-12e5d1b0f22de93c.md): ClickHouse · 2023-08-29 · Medium · 28 min read · Analytics & OLAP, SQL, Machine learning
  Hugging Face's Datasets Server automatically converts every dataset to Parquet and exposes the file URLs through a REST endpoint, so clickhouse-local can query any dataset with plain SQL via the url function and URL table engine.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
