SQL query generator from a plain-English request
Converts a natural-language data requirement plus a table schema into a syntactically correct SQL query for a named database, with its assumptions stated up front.
Specify cohort membership, return behavior and observation maturity so retention percentages remain comparable.
No public result for version 1 yet
Version 1 · 3 variables · 3 required
Fill in the values below — the customized prompt updates as you type. marks a required value.
The behavior and decision under study. Default: How often do newly activated accounts return to create another report?
Fields, identity model, timestamp meaning and coverage. Default: events(account_id, event_name, occurred_at UTC); report_created events cover 2026-01-01 through 2026-08-31. Account merge history is unavailable.
Entry event, interval choice, return event and exclusions. Default: Assign accounts by month of first report_created. Measure at least one report_created in each later calendar month. Exclude the signup month from return comparisons.
Design a retention-cohort analysis for How often do newly activated accounts return to create another report?.
Event schema and data coverage: events(account_id, event_name, occurred_at UTC); report_created events cover 2026-01-01 through 2026-08-31. Account merge history is unavailable.
Cohort and return-event definitions: Assign accounts by month of first report_created. Measure at least one report_created in each later calendar month. Exclude the signup month from return comparisons.
Specify cohort assignment, identity resolution, timezone, interval boundaries and the event that counts as a return. Define the denominator and distinguish exact-period retention from on-or-after retention; do not mix them.
Show the calculation steps or SQL outline using only known fields. Account for duplicate events, users with no return and cohorts that have not reached a full observation interval. Mark immature cells unavailable rather than zero.
Describe a cohort-size table and retention matrix, then list validation checks for membership, denominators and coverage. Do not infer why retention changed or invent heatmap values when only a schema is supplied.No public examples yet for version 1
Curated prompt only. No example output or model test is attached; model compatibility has not been verified. Default inputs are illustrative practice material; replace them with your own facts and context.
Reports go to moderators and are never shown publicly.
Converts a natural-language data requirement plus a table schema into a syntactically correct SQL query for a named database, with its assumptions stated up front.
No public results yet
Check join cardinality and aggregation grain to explain duplicate rows or double-counted measures before changing a reporting query.
No public results yet
Specify temporal evaluation, leakage checks, baselines and business-relevant metrics before judging a forecasting model.
No public results yet
Review a chart's scales, labels, aggregation and claims, separating visual issues from data questions that need verification.
No public results yet
Label supplied comments consistently while preserving mixed opinions, unclear cases and the exact words supporting each label.
No public results yet
Produce a deterministic transformation from repeated measure columns to tidy rows with explicit keys, types and missing-value rules.
Oldest first · one level of replies
Sign in to join the discussion. Share what you learned or made with this prompt.
No comments yet
Be the first to share how this prompt worked for you.