I Don’t Want a Lesson in Computer Science!
Star Trek: The Next Generation scenes where the crew queries the ship's computer were re-enacted using Claude as a natural-language-to-SQL translator over a synthetic DuckDB database built so that correct queries reproduce the on-screen answers. Each dialogue line maps to a concrete query: checksum validation via GROUP BY with FILTER, ILIKE searches scoped by a ship_status subquery, a self-join cross-referencing Darmok and Tanagra, and successive predicates narrowing 15,525 substances to 2. By the authors' reading, 40 of 49 answers matched the script. Misses came from details such as a strict '>' on a date boundary. The database can be attached directly over HTTPS to try the queries.
Related posts
- Text2SQL using Hugging Face Dataset Viewer API and Motherduck DuckDB-NSQL-7B
Hugging Face mediumAdeptDuckDB-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. The pipeline fetches a dataset's auto-converted parquet URL from the Dataset Viewer API and derives a CREATE TABLE schema by loading one row into DuckDB. It then prompts the quantized GGUF model through llama.cpp with the schema and question, rewrites the table name to the parquet URL, and executes the query in DuckDB. On the world-cities-geo dataset the generated query matches the results of the Viewer's search and filter APIs.
- The Agentic Analytics Benchmark, round two: GPT-6, Claude Opus 5.5, Claude Sonnet 5.5
ClickHouse mediumAdept
Five new models (GPT-6 Astra, Luna, Sol, Claude Opus 5.5 and Claude Sonnet 5.5) were added to a frozen 201-question agentic text-to-SQL benchmark over a synthetic ClickHouse warehouse. All five land in a statistically tied 68.7–69.7% band, below leader Claude Fable 5.1 (76.6%), and no GPT-6 variant beats GPT-5.5 at default reasoning effort. Sonnet 5.5 is the standout: +6.5 points over Sonnet 5, concentrated on multi-hop dimensional-layer questions, with zero turn-limited runs (vs 16), 3.5 mean turns vs 9.1, and about 5 cents per question. Wrong planning remains the dominant failure mode and runtime SQL errors have disappeared. Harness changes include engine/timezone pinning, credential preflight, configurable numeric tolerance and a Rasch model for judge uncertainty, and the advice stands to run the open-source harness on your own warehouse.
- Efficient Table Pre-training without Real Data: An Introduction to TAPEX
Hugging Face hardMasterTAPEX pre-trains a language model (BART) for table reasoning by teaching it to act as a neural SQL executor. Its training corpus is synthetic: SQL queries are sampled over web tables and executed with a real engine such as MySQL to produce target outputs. Because SQL execution is structurally close to table question answering, TAPEX set new state-of-the-art results on WikiSQL (89.6%), TabFact (84.2%), SQA (74.5%) and WikiTableQuestions (57.5%). It beat TaBERT by 2% using only 2% of the pre-training corpus, roughly a 50x efficiency gain. The takeaway for continual pre-training is to synthesize a small, accurate, program-generated corpus rather than mine large, noisy natural-language data. Models and fine-tuning scripts are available in Hugging Face Transformers.
- Introducing the SQL Console on Datasets
Hugging Face mediumAdeptHugging 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.
- How Edgar Allan Poe found bugs in Turso
Turso mediumAdeptTurso runs LLM coding agents (Claude Code with the Ralph Loop plugin) for days at a time to autonomously find SQL correctness bugs. They use differential testing against SQLite as the oracle and prompts that steer agents toward complex code, unusual query shapes and away from happy paths. When long-running agents start going in circles, injecting entropy restores exploration: priming phrases (after the Recoding-Decoding paper) or arbitrary personas. Telling a stalled agent to act like Edgar Allan Poe produced 3 novel bugs within 5 minutes after an hour with none, so the team now runs parallel agents with different personas.