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.
Produce a deterministic transformation from repeated measure columns to tidy rows with explicit keys, types and missing-value rules.
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.
Source columns and representative rows. Default: Illustrative CSV: store_id,sales_jan,sales_feb 001,120,130 002,90,
Target grain, field mapping and missingness rules. Default: Output columns store_id:string, month:string, sales:number|null. One row for every store-month, including missing sales. Strip the sales_ prefix from month names.
Installed tools and file names. Default: Python 3.12 with pandas; read input.csv and write tidy.csv.
Transform this wide dataset into the requested tidy structure.
Input schema and sample: Illustrative CSV:
store_id,sales_jan,sales_feb
001,120,130
002,90,
Target schema and transformation rules: Output columns store_id:string, month:string, sales:number|null. One row for every store-month, including missing sales. Strip the sales_ prefix from month names.
Implementation environment: Python 3.12 with pandas; read input.csv and write tidy.csv.
Explain the identifier columns, columns to unpivot, parsed variable names and resulting row grain. Flag any naming ambiguity before choosing a mapping.
Provide a complete transformation script for the stated environment. Preserve identifiers as strings when needed, handle missing values exactly as specified, and avoid silently coercing invalid cells or dropping rows. Keep the original input unchanged.
Include validation checks for key preservation, expected row counts, type conversion failures and a round-trip comparison where meaningful. Label any sample output as illustrative until executed. Do not claim the script was run or that a sample establishes whole-file quality.No public examples yet for version 1
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
Specify cohort membership, return behavior and observation maturity so retention percentages remain comparable.
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.