Generate SQL from natural language prompt
Produces a working, commented and safe SQL query for the given schema.
Ready prompt
Translate the natural-language question to SQL using the schema below, in dialect. Rules: - Only use tables/columns in the schema. - Make reasonable index assumptions for performance and state them. - Add one-line comments to important sections. - End with 2 alternative approaches and when each is preferable. Schema: Question:
Prompts are for illustration only. Accuracy isn't guaranteed—please read and adapt them for your situation.
This prompt is for general purposes. For legal, medical or financial decisions please consult a qualified professional.
Related prompts
Data Analysis
Dashboard brief and metrics prompt
Defines audience, decision framing and a metric set for a dashboard; warns against misleading visuals.
ChatGPTClaudeGemini
0
Data Analysis
Excel formula and alternatives prompt
Produces the best-fit Excel/Google Sheets formula with alternatives and debugging tips.
ChatGPTClaudeGemini
0
Data Analysis
Build a hypothesis testing plan prompt
Picks an appropriate test, sizes the sample and sets a reporting frame for a hypothesis.
ChatGPTClaudeDeepSeek
0
Data Analysis
Recommend a chart to tell the story prompt
Picks the right chart type for your question and data, with axes and emphasis tips.
ChatGPTClaudeGemini
0