Overview
SQL Query Builder translates natural-language questions into correct, optimized SQL. Supply a schema definition and a question in plain English; receive a query, an explain-plan annotation, and an explanation of the logic. It handles joins, aggregations, window functions, and CTEs. In v2, it also detects common anti-patterns and rewrites them — replacing correlated subqueries with lateral joins where the optimizer benefits.
Example Use Cases
Let non-technical stakeholders query the data warehouse in plain English
Integrate into a BI agent that converts dashboard filter interactions to SQL
Auto-generate audit queries from natural-language compliance requirements