# SQL Query Builder

Build a read-only [dialect] query for [question] using [schema]. State the output grain, handle nulls and duplicate joins explicitly, and show how to check the totals. Suggest an index or plan check only when the query gives a reason for it.
