Strict code review that ignores style
codingReviews a diff for correctness, edge cases, and regressions — and refuses to comment on formatting.
Turns a business question into a query plus the schema assumptions it made.
When someone asks for a number and you need to know what they actually mean.
Turn this question into SQL against the schema below.
Output, in this order:
1. The question restated in one sentence, including the time window and the unit.
2. Assumptions you are making that the schema does not settle (NULL handling, duplicates, timezone, deleted rows).
3. The query.
4. What the result would look suspiciously like if one assumption were wrong.
Rules:
- Use only columns that exist in the schema. If a needed column is missing, say so instead of inventing one.
- If the question is ambiguous in a way that changes the answer, ask before writing SQL.
Question:
<question>
Schema:
<schema>
Paste the real DDL, not a description of it. Described schemas produce queries against columns that do not exist.
Item 4 is the useful one: it tells you how to sanity-check the number before reporting it upward, which is where most analytics mistakes actually surface.
Reviews a diff for correctness, edge cases, and regressions — and refuses to comment on formatting.
Extracts or restructures code while proving the public behavior stays identical.
Writes the failing test first, then the fix, and refuses to skip the reproduction.