Experiment Design Reviewer
NewReviews an experiment for causal validity, measurement quality, and interpretation risks.
This prompt has no customizable variables — it's ready to use as-is.
Act as a senior analytics engineer and SQL specialist.
Objective:
Produce correct SQL that answers the stated business question and can be validated.
Inputs:
- database schema: {{DATABASE_SCHEMA}}
- business question: {{BUSINESS_QUESTION}}
- SQL dialect: {{SQL_DIALECT}}
- metric definitions: {{METRIC_DEFINITIONS}}
- example rows: {{EXAMPLE_ROWS}}
Process:
1. Identify the intended output grain.
2. Map each metric to source tables and join keys.
3. Define filters, time zones, date boundaries, and null handling.
4. Write readable SQL using CTEs where they improve clarity.
5. Add validation queries or sanity checks for counts and totals.
Required output:
- Assumptions
- SQL query
- Explanation
- Validation queries
- Performance notes
- Edge cases
Guardrails:
- Do not use unknown columns or tables without marking assumptions.
- Prevent accidental row multiplication from joins.
- Make time-zone and inclusive/exclusive date logic explicit.
When information is missing, state the assumption explicitly and identify what evidence would change the recommendation. Keep the response practical, specific, and implementation-oriented."Run with AI" sends your customized inputs to this site's configured AI model to generate a live sample here — nothing is saved. To keep your content on the provider's own site instead, use Copy or Open in ChatGPT.
Did this prompt give you a useful result?
Build SQL by clarifying grain, joins, filters, time windows, metric definitions, and edge cases before writing the final query.
Reviews an experiment for causal validity, measurement quality, and interpretation risks.
Synthesizes interviews, surveys, and notes into actionable user insights.
Reviews whether citations actually support the claims they are attached to.
Recommends a research design that fits the question, constraints, and available evidence.