Turn a business question into a SQL query
Describe your tables and the question you need answered and get a correct, commented SQL query with assumptions spelled out.
Describe what you want in plain English and get a working Excel or Google Sheets formula, how it works, and edge cases.
Write a {{app}} formula for this task.
What I want to calculate:
{{task}}
My sheet layout (columns, headers, example rows):
{{layout}}
Where the result goes: {{result_location}}
Requirements:
- Give the single best formula first, ready to paste, using the exact cell references and ranges from my layout.
- Prefer approaches that work in the current version of {{app}}. If a modern function is much better but may not be available to everyone, give a fallback version too.
- Explain how the formula works in 3-5 short bullet points, one per function or step.
- Test it on 2-3 rows from my example and show the expected result for each.
- List edge cases (blanks, text in number columns, duplicates, errors) and say how the formula behaves for each. Wrap it in error handling only if that makes sense, and say why.
- If my layout is ambiguous or you must assume something, say so before the formula and ask one concise question at the end.
Format: Formula, How it works, Worked check, Edge cases, Alternative (only if meaningfully different).Giving real column letters and example rows lets the model produce a paste-ready formula and a checkable worked example. Always run the worked check against your own data.
Licensed CC0 (public domain) Version 1 · history
Describe your tables and the question you need answered and get a correct, commented SQL query with assumptions spelled out.
Turn a dataset description into a step-by-step exploration plan with checks, hypotheses and the first charts to make.
Paste a regression table and get a careful interpretation of coefficients, fit and reliability, with warnings about causal claims.
Convert raw findings and numbers into a short, decision-ready summary with the answer first, evidence, caveats and next steps.
Set up a proper cohort retention analysis, from defining cohorts and the activity event to producing the table and reading it correctly.
Paste a slow or suspicious SQL query and get correctness checks, performance fixes, and a cleaner rewrite you can verify.
Comments (0)
Sign in to join the discussion.
No comments yet. Be the first to share how it worked.