AdventureWorks Chat-Based Reporting
Ask Microsoft's canonical sales warehouse a question. Two frontier LLMs — Azure OpenAI and Claude — generate the T-SQL, the warehouse runs it, and you get the answer as a table, a chart, and a sentence or two of prose. Same question, two models — see for yourself how they compare.
The data is the public AdventureWorksDW2022 sample — a fictional bike company's sales from 2010–2014. Every query is validated to be a single SELECT against the allowed tables before it hits the database. The model can't write, drop, or read anything outside the warehouse.
What is AdventureWorksDW?
Microsoft's canonical sales-warehouse sample. A fictional bike company (Adventure Works Cycles) selling 2010–2014, with ~60K internet orders, ~60K reseller orders, and 700 dimension tables. Denormalized star schema — joins are cheap, queries are forgiving.
FactInternetSales— Direct-to-consumer ordersFactResellerSales— Wholesale channelFactProductInventory— Daily snapshotsFactCallCenter— Daily call-center ops
DimDate— Calendar — join on OrderDateKeyDimCustomer— 18K end-customers, demographicsDimProduct + Subcategory + Category— SKU catalogDimSalesTerritory— Region / Country / GroupDimReseller— ~700 wholesale accountsDimEmployee— Salespeople (with hierarchy)DimGeography— Cities / states / countriesDimPromotion, DimCurrency, DimAccount— Lookups
Years in the data: 2010–2014. Currency: USD-equivalent via DimCurrency.
Ask the warehouse a question. The model translates it to T-SQL, runs it against AdventureWorksDW, and renders the result here as a chart, a sortable table, and a sentence or two of prose.
First query after idle takes ~20-30s while the serverless database wakes up.