---
title: "I Don’t Want a Lesson in Computer Science!"
description: "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."
url: "https://swe.quest/articles/i-don-t-want-a-lesson-in-computer-science-864d0c19c5134d71"
canonical: "https://duckdb.org/2026/11/25/star-trek-queries-duckdb.html"
source: "DuckDB"
published: "2026-11-25"
difficulty: "medium"
kind: "Article"
reading_minutes: 43
tags: ["sql","llms","analytics"]
---

# I Don’t Want a Lesson in Computer Science!

A post on [DuckDB](https://swe.quest/sources/duckdb.md), published 2026-11-25, 43 min read, Article. Original: [https://duckdb.org/2026/11/25/star-trek-queries-duckdb.html](https://duckdb.org/2026/11/25/star-trek-queries-duckdb.html)

## Summary

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.

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)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)

## Prerequisites

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

## Keywords

DuckDB, Claude, Claude Code, Star Trek: The Next Generation

## Related posts

- [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.
- [The Agentic Analytics Benchmark, round two: GPT-6, Claude Opus 5.5, Claude Sonnet 5.5](https://swe.quest/articles/the-agentic-analytics-benchmark-round-two-gpt-6-claude-opus-5-5-claude-sonnet-5-f67c49a44d812e12.md): ClickHouse · 2026-10-20 · Medium · 9 min read · Evaluation, AI agents, LLMs, Analytics & OLAP, SQL
  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.
- [Efficient Table Pre-training without Real Data: An Introduction to TAPEX](https://swe.quest/articles/efficient-table-pre-training-without-real-data-an-introduction-to-tapex-e9ef75c7b74d3891.md): Hugging Face · 2022-05-23 · Hard · 6 min read · Model training, LLMs, Machine learning, SQL
  TAPEX pre-trains a language model (BART) for table reasoning by teaching it to act as a neural SQL executor.
- [Introducing the SQL Console on Datasets](https://swe.quest/articles/introducing-the-sql-console-on-datasets-89aa5e3e1204ae2f.md): Hugging Face · 2024-09-17 · Medium · 5 min read · SQL, Analytics & OLAP, WebAssembly, Model training
  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.
- [How Edgar Allan Poe found bugs in Turso](https://swe.quest/articles/how-edgar-allan-poe-found-bugs-in-turso-c2af43819364d44c.md): Turso · 2026-06-08 · Medium · 7 min read · Testing, AI agents, SQLite, LLMs, Databases
  Turso runs LLM coding agents (Claude Code with the Ralph Loop plugin) for days at a time to autonomously find SQL correctness bugs.

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)
