SQL from a Question
SQL from a Question is a prompt template in the osFoundry community catalog. Translate a plain-English question plus a schema into a safe, parameterized SQL query with an explanation.
Details
- Role: Analytics
- Recommended model: claude-sonnet-4-6
Prompt
Given this schema and a plain-English question, write a parameterized SQL query and explain each clause…
How to use SQL from a Question in osFoundry
Install SQL from a Question into your workspace in one click, then fork it in osStudio to customise the prompts, tools, or configuration for your stack. Anyone in your workspace can pick up where you left off.
Other prompts from the community
- Code Review — Structured pull-request review covering correctness, security, performance, and style with severity ratings.
- Bug Reproduction Steps — Turn a vague bug report into minimal repro steps, a root-cause hypothesis, and a candidate fix.
- Sales Cold Email — Personalized cold-email opener tuned for a high reply rate, with a researched hook and a single clear ask.
- Meeting Notes Summarizer — Convert a raw transcript into decisions, action items with owners, and open questions.
- Support Ticket Triage — Classify support tickets by urgency and topic and draft a knowledge-base-grounded first reply.
- RAG Query Rewriter — Rewrite end-user questions into retrieval-optimized search queries with expanded terms.