Skip to main content

Workflow

Answer a data question you can defend

From question to query to result: a plan, the SQL or script, the right test, and a note on what the data cannot tell you.

Inputs

Question
One decision the answer will change.
Data available
Tables, columns, sample rows, or a description.
Tool
SQL dialect, spreadsheet, Python.

Context

Most analysis goes wrong before the query: an unclear question or dirty data. Fix those first.

Constraints

  • State the question and the decision it informs first.
  • List assumptions about the data and how to check each.
  • Name the statistical test and why it fits, or say none is needed.
  • Never send real personal data to a model; use a schema or synthetic sample.

Output

  1. Question and decision
  2. Data checks (nulls, duplicates, ranges)
  3. Query or script
  4. How to read the result
  5. What it cannot tell you

How to judge it

If the result came back the other way, would you make a different decision? If not, skip the analysis.

Worked example

Input

QUESTION: did the new signup page change conversion? DATA: visits(id, ts, variant), signups(visit_id, ts). TOOL: Postgres.

Output

Checks: one row per visit; variant never null; signups only after visits.
Query: count visits and signups by variant, joined on visit_id.
Test: two-proportion z-test, since both are counts of yes/no.
Cannot tell: why, or whether it holds next month.

What it will not do

  • Doesn't see your data unless you share it.
  • Won't make a small sample significant.
  • Forecasts are scenarios, not promises.

The prompt

Task: Answer a data question you can defend.
Context: Most analysis goes wrong before the query: an unclear question or dirty data. Fix those first.
Inputs:
- Question: [QUESTION]
- Data available: [DATA AVAILABLE]
- Tool: [TOOL]
Constraints:
- State the question and the decision it informs first.
- List assumptions about the data and how to check each.
- Name the statistical test and why it fits, or say none is needed.
- Never send real personal data to a model; use a schema or synthetic sample.
Return, in this order:
1. Question and decision
2. Data checks (nulls, duplicates, ranges)
3. Query or script
4. How to read the result
5. What it cannot tell you
Before you answer, check: If the result came back the other way, would you make a different decision? If not, skip the analysis.

Replaces these old prompts