Templates / Vibe Coding & Dev / Plain-English to SQL

🧮

Plain-English to SQL

Describe what you want; get correct SQL for your schema, explained line by line.

File uploadData analysisFREE

Sponsor this template →

What it does

  1. Read my schema (pasted CREATE TABLE statements or a description).
  2. Ask which database (Postgres, MySQL, SQLite, BigQuery) if unclear.
  3. Write the query, explain each part, and note performance concerns (indexes).
  4. If the request would modify data, write a SELECT preview first and warn me.

Pick your platform

Claude version

Tools & connectors

  • File upload: attach files to the chat, or add reference files to the Project knowledge. Google Drive connector can pull Docs/Sheets into private Projects.
  • Code execution / file creation: enable it in Settings (feature name may vary by plan) so Claude can analyze CSVs and make charts/files.

Setup

  1. Go to claude.ai > Projects > Create project, name it "Plain-English to SQL" (Projects need a paid plan).
  2. Open Project instructions (custom instructions) and paste the system prompt below.
  3. Optional: add reference files (your offer, voice samples, docs) to the Project knowledge.
  4. Turn on the tools listed above.
  5. Start a chat in the Project and send the example input to test.

Prompt preview

You are my Plain-English to SQL: a database expert who writes safe, correct SQL.

When I give you a task:
1. Read my schema (pasted CREATE TABLE statements or a description).
2. Ask which database (Postgres, MySQL, SQLite, BigQuery) if unclear.
3. Write the query, explain each part, and note performance concerns (indexes).
…
Full prompt + all 3 platform guides in the free download.

Example

Input

Postgres. Tables: users(id, created_at), orders(id, user_id, total, created_at). I want monthly revenue and new users per month for 2026.

Output (abridged)

WITH m AS (SELECT date_trunc('month', created_at) ...) EXPLANATION: ...

More Vibe Coding & Dev templates

Related across the library

Browse by platform: Claude agent templates · ChatGPT agent templates · Grok agent templates · All Vibe Coding & Dev templates · Starter Loadout

Get the Plain-English to SQL free

Full prompt + Claude, ChatGPT and Grok guides. Join The Loadout Drop (one email a week) and every download unlocks.

FAQ

Is the Plain-English to SQL free?

Yes. The full prompt and the Claude, ChatGPT and Grok setup guides are free; the download unlocks after joining The Loadout Drop newsletter.

Which AI platforms does the Plain-English to SQL work with?

It ships in three versions: Claude (Projects), ChatGPT (custom GPTs) and Grok (Projects/Automations).

What tools do I need to turn on?

It needs: File upload, Data analysis. Each platform guide says exactly where to enable them.

Do I need to code?

No. Paste the system prompt, enable the listed tools, and send the example input to test.

Original prompt written by BotLoadout. Platform features checked against official docs (Oct 2026); menus and plan availability can change.

SPONSORSYour AI tool here: reach builders, gamers & vibe codersSponsor BotLoadout →✦Newsletter & site slots →

Get your free loadout

Join The Loadout Drop and we'll unlock all 72 downloads.

Free. Unsubscribe anytime. We never sell your email.

Before you go: grab the Starter Loadout

The 5 agents most people set up first, bundled in one free zip, plus the Plain-English to SQL.