Draft a SQL query from a data question and the database schema, with a short explanation of what it does.
Draft SQL counts of policies or claims using the requested criteria.
Get a SQL count query in the chat thread, with a clear note on what it counts and which conditions it uses.
Draft joins between policy and claim tables for coverage questions.
Get a SQL query with the joins and filters your question needs, plus a short explanation in the same help thread.
Draft SQL for policy and claims analyses that need intermediate rows.
Get a CTE SQL query or subquery draft on your analysis ticket, with each stage explained before you run it.