Paste any stakeholder question and a schema description to get correct SQL, a plain-English explanation of what the query returns, and edge cases the business user should know about.
Paste any stakeholder question and a schema description to get correct SQL, a plain-English explanation of what the query returns, and edge cases the business user should know about. Use it when a non-technical colleague asks for data and you want to hand them both a working query and the context to interpret it.
Act as a Business Data Analyst.
Schema: [DESCRIBE TABLES AND WHAT EACH REPRESENTS]
Question from [role]: '[EXACT VERBATIM QUESTION]'
Step 1: Restate as a precise analytical question, resolve all ambiguity
Step 2: Write the SQL
Step 3: Explain the output in 3 plain-English sentences
Step 4: Flag 2 edge cases the stakeholder should know about
Source: https://www.buildfastwithai.com/blogs/ai-prompts-data-analyst-python-sql-chatgpt-2026