Personas work in Claude Code, Cursor and Codex, too. See how
  1. Home
  2. Marketplace
  3. SQL From a Question

Prompt Data & Research

SQL From a Question

Generates a single, explained SQL query from a schema and a plain question.

View and download it in the sqemes app, no account needed.

Fields you fill in

  • {{schema}} Table schema
  • {{question}} Question

What it contains

Given this schema:

{{schema}}

Write a single SQL query that answers:

{{question}}

Requirements:
- Standard SQL
- Explain the query in one sentence after the code
- Note any assumption about the data
- Do not use SELECT *

sqldata

More playbooks

All playbooks