Copy this prompt, paste into ChatGPT or your preferred AI chat, and send.
Preview full prompt
Table schema:
[paste table/column names and types]
Question I want answered: "[plain-English question]"
1. Write the SQL query to answer it.
2. Explain each clause briefly, especially any joins or window functions.
3. Note any assumption you made about the data (e.g. how nulls are handled) that I should verify.
Shared by a PurePrompt user · Published Jul 25, 2026