Draft a SQL query from a data question and the database schema, with a short explanation of what it does.
Map requested report categories to schema fields and draft SQL.
Get a pivot SQL query back in the chat thread, with totals explained and columns matched to your database schema.
Translate team ranking questions into schema-grounded SQL.
Get a ranking SQL query in your chat thread, ready for review. See how the measure and ties determine each position.
Turn team count questions into SQL grounded in the database schema.
Get a SQL count query in the chat thread, with a clear note on what it counts and which conditions it uses.