01 / A SHORT TASK PROMPT
Ask for a checkable result
Review a query that joins orders to lines and payments on order_id before summing. State the target grain, enumerate joined rows for O-01, and calculate what the naive sums would show. Propose a read-only query that aggregates each child table first. Do not use DISTINCT on money values to hide repeated rows.