The future of SQL is multimodal
Introducing Chowder: the open-source AI-native SQL engine for multimodal data analytics.

The world runs on SQL. But most of the world's data doesn't fit neatly into rows and columns.
Documents, text, images, video, audio, and more contain an enormous amount of valuable information. Yet turning that information into something we can analyze remains surprisingly difficult. Data teams often have to stitch together document parsers, AI models, inference APIs, orchestration pipelines, and databases before they can ask a question of that data.
For example, suppose we want to find financial-report pages that discuss operating income. We need to read the documents, extract their contents, run a model against that text, and turn its answers into typed values we can filter and aggregate. If we later want to extract revenue figures or compare reporting periods, we can express that next question over the same page rows.
The question is simple. The infrastructure around it isn't.
There is a better way: make AI native to SQL.
Meet Chowder
Chowder is an open-source AI-native SQL engine for multimodal data analytics. It brings data readers, model inference, and query execution together so we can analyze documents, text, images, video, audio, and more through a SQL query.
Instead of building separate inference pipelines for each task, we can express inference as a relational operator in SQL, producing typed, columnar outputs we can filter, join, and aggregate. The engine handles how that work is executed.
Using the financial report in the Chowder demo bucket, we can ask which pages explain the business reasons behind declining revenue:
SELECT
page_number,
content, -- Parsed PDF page in Markdown
infer(
content,
'Does this page explain the business reasons behind declining revenue?',
BOOL -- Return a typed Boolean answer
) AS inference
FROM read_documents('hf://buckets/chowderai/chowder-demo/pdf/data/att-management-discussion-and-analysis-2020.pdf')
WHERE inference.output -- Filter using the SELECT alias
AND inference.confidence > 0.9 -- Filter by model confidence, not a correctness guarantee
LIMIT 3;The read_documents table function parses the PDFs into page-level rows. infer applies the prompt to each page’s content and returns a structured column we name inference, containing a typed output and a confidence score. We keep pages where the answer is true and the score exceeds 0.9, then return up to three matches with their page number, content, and inference result so we can inspect the evidence.
The result has ordinary columns alongside the structured inference column. A recorded result from the AT&T report looks like this:
| page_number | content | inference |
|---|---|---|
| 5 | | | | | | Percent Change | |
| ---------------------------------------------- | --------- | -------- | -------- | -------------- | -------- |
| | | | | 2020 vs. | 2019 vs. |
| | 2020 | 2019 | 2018 | 2019 | 2018 |
| Operating revenues Service | $152,767 | $163,499 | $152,345 | (6.6)% | 7.3% |
| Equipment | 18,993 | 17,694 | 18,411 | 7.3 | (3.9) |
| Total Operating Revenues | 171,760 | 181,193 | 170,756 | (5.2) | 6.1 |
| Operating expenses Operations and support | 117,959 | 123,563 | 116,184 | (4.5) | 6.4 |
| Asset impairments and abandonments | 18,880 | 1,458 | 46 | — | — |
| Depreciation and amortization | 28,516 | 28,217 | 28,430 | 1.1 | (0.7) |
| Total Operating Expenses | 165,355 | 153,238 | 144,660 | 7.9 | 5.9 |
| Operating Income | 6,405 | 27,955 | 26,096 | (77.1) | 7.1 |
| Interest expense | 7,925 | 8,422 | 7,957 | (5.9) | 5.8 |
| Equity in net income (loss) of affiliates | 95 | 6 | (48) | — | — |
| Other income (expense) – net | (1,431) | (1,071) | 6,782 | (33.6) | — |
| Income (Loss) Before Income Taxes | (2,856) | 18,468 | 24,873 | — | (25.8) |
| Net Income (Loss) | (3,821) | 14,975 | 19,953 | — | (24.9) |
| Net Income (Loss) Attributable to AT&T | (5,176) | 13,903 | 19,370 | — | (28.2) |
| Net Income (Loss) Attributable to Common Stock | $ (5,369) | $ 13,900 | $ 19,370 | —% | (28.2)% |
## OVERVIEW
Operating revenues decreased in 2020, with declines in all segments reflecting impacts of the COVID-19 pandemic. Lower WarnerMedia segment revenues reflect limited and postponed theatrical and home entertainment releases as well as lower television licensing, productions and advertising revenues. Communications segment revenue declines were driven by continued declines in video and legacy services, partially offset by higher wireless device sales and increases in strategic and managed business service revenues. Latin America segment revenue declines were primarily due to foreign exchange rates.
Operations and support expenses decreased in 2020, driven by impacts of the pandemic which resulted in lower broadcast and programming costs in our Communications and WarnerMedia segments and lower film-related print and advertising costs at WarnerMedia. Also contributing to declines were a noncash gain of $900 on a spectrum transaction in the first quarter that was recorded as an offset to operating expenses as well as our continued focus on cost management. Offsetting these expense decreases were higher costs associated with our investment in HBO Max, employee separation charges and incremental costs related to COVID-19. As part of our cost and efficiency initiatives, we expect operations and support expense improvements to continue as we size our operations to reflect the current economic activity level.
Asset impairments and abandonments increased in 2020, primarily due to noncash impairment charges of $15,508 in the fourth quarter, resulting from our assessment of the recoverability of the long-lived assets and goodwill associated with our video business (see Notes 7 and 9). The increase also includes a goodwill impairment of $2,212 at our Vrio business unit in the second quarter (see Note 9) and $780 from the impairment of production and other content inventory at WarnerMedia, with approximately $524 resulting from the continued shutdown of theaters during the pandemic and the hybrid distribution model for our 2021 film slate (see Note 11). Charges in 2019 primarily related to the abandonment of certain copper assets that were not necessary to support future network activity (see Note 7).
Depreciation and amortization expense increased in 2020.
Amortization expense increased $307, or 3.9%, in 2020 due to the amortization of orbital slot licenses, which began in the first quarter of 2020 (see Note 1). Amortization expense in 2021 will reflect approximately $1,200 of reductions from the 2020 impairment of orbital slots and customers lists associated with our domestic video business (see Note 9).
Depreciation expense decreased $8 in 2020 primarily due to ongoing capital spend for network upgrades and expansion partially offset by fully depreciated assets in our Communications segment. Depreciation expense in 2021 will reflect approximately $480 of reductions from the 2020 impairment of property, plant and equipment associated with our domestic video business (see Note 7).
Operating income decreased in 2020 and increased in 2019. Our operating margin was 3.7% in 2020, compared to 15.4% in 2019 and 15.3% in 2018.
17 | {
"output": true,
"confidence": 0.9914252758026123,
"error": null,
"input_tokens": 1559,
"input_ms": 2654.781,
"output_tokens": 1,
"output_ms": 0.001,
"model": "Bitsy-3.3B-Q4_K_M",
"model_id": "cddb517d0470",
"probabilities": {
"true": 0.9914252758026123,
"false": 0.006741045042872429,
"unknown": 0.0018336566863581538
}
} |
| 8 | Management's Discussion and Analysis of Financial Condition and Results of Operations (continued)
Dollars in millions except per share amounts
Service revenue increased during 2020 largely due to growth in phone subscribers and connected devices, offset by declines in international roaming revenue due to reduced travel during the pandemic. Successful offers aimed at customer retention contributed to subscriber growth and lower churn.
## ARPU
Average revenue per subscriber (ARPU) decreased primarily due to the decline in international roaming and waived fees.
## Churn
The effective management of subscriber churn is critical to our ability to maximize revenue growth and to maintain and improve margins. Postpaid churn and postpaid phone-only churn were lower in 2020 due to migrations to unlimited plans, continued network improvements, subscriber retention offers in the fourth quarter, and lower overall involuntary disconnects.
Equipment revenue increased in 2020 primarily due to higher equipment revenue from higher postpaid upgrade volumes, the mix of sales of higher-priced smartphones, and higher sales of data devices, including wearables, wireless modems and hotspots.
Operations and support expenses increased in 2020, largely driven by higher equipment costs, increased commission deferral amortization and intercompany content costs associated with plans offering HBO Max, partially offset by lower bad debt expense. The increase in commission deferral amortization is partly offset by the impacts of our second-quarter 2020 updates to extend the expected economic life of our Mobility customers.
Depreciation expense increased in 2020, primarily due to ongoing capital spending for network upgrades and expansion partially offset by fully depreciated assets.
Operating income increased in 2020 and 2019. Our Mobility operating income margin was 30.8% in 2020, 31.4% in 2019 and 30.6% in 2018. Our Mobility EBITDA margin was 42.0% in 2020, 42.7% in 2019 and 42.3% in 2018.
## Subscriber Relationships
As the wireless industry has matured, future wireless growth will depend on our ability to offer innovative services, plans and devices that take advantage of our premier 5G wireless network, which went nationwide in July 2020, and to provide these services in bundled product offerings. Subscribers that purchase two or more services from us have significantly lower churn than subscribers that purchase only one service. To support higher mobile data usage, our priority is to best utilize a wireless network that has sufficient spectrum and capacity to support these innovations on as broad a geographic basis as possible.
To attract and retain subscribers in a mature and highly competitive market, we have launched a wide variety of plans, including our FirstNet and prepaid products, and arrangements that bundle our video services. Virtually all of our postpaid smartphone subscribers are on plans that provide for service on multiple devices at reduced rates, and subscribers to such plans tend to have higher retention and lower churn rates. We offer unlimited data plans and such subscribers also tend to have higher retention and lower churn rates. Our offerings are intended to encourage existing subscribers to upgrade their current services and/or add devices, attract subscribers from other providers and/or minimize subscriber churn.
## Connected Devices
Connected devices include data-centric devices such as wholesale automobile systems, monitoring devices, fleet management and session-based tablets. Connected device subscribers increased in 2020, and we added approximately 9.9 million wholesale connected cars through agreements with various carmakers, and experienced strong growth in other Internet of Things (IoT) connections. These connected car agreements give us the opportunity to create future retail relationships with the car owners.
## Video Results
| | | | | Percent Change | |
| ----------------------------------------- | ------- | ------- | ------- | -------------- | -------- |
| | | | | 2020 vs. | 2019 vs. |
| | 2020 | 2019 | 2018 | 2019 | 2018 |
| Operating revenues Service | $28,465 | $32,123 | $33,363 | (11.4)% | (3.7)% |
| Equipment | 145 | 1 | — | — | — |
| Total Operating Revenues | 28,610 | 32,124 | 33,363 | (10.9) | (3.7) |
| Operating expenses Operations and support | 24,619 | 27,599 | 29,334 | (10.8) | (5.9) |
| Depreciation and amortization | 2,262 | 2,461 | 2,698 | (8.1) | (8.8) |
| Total Operating Expenses | 26,881 | 30,060 | 32,032 | (10.6) | (6.2) |
| Operating Income | 1,729 | 2,064 | 1,331 | (16.2) | 55.1 |
| Equity in Net Income (Loss) of Affiliates | — | — | — | — | — |
| Operating Contribution | $ 1,729 | $ 2,064 | $ 1,331 | (16.2)% | 55.1% |
20 2020 ANNUAL REPORT | {
"output": true,
"confidence": 0.9267468452453613,
"error": null,
"input_tokens": 1341,
"input_ms": 2356.657,
"output_tokens": 1,
"output_ms": 0.001,
"model": "Bitsy-3.3B-Q4_K_M",
"model_id": "cddb517d0470",
"probabilities": {
"true": 0.9267468452453613,
"false": 0.053735289722681046,
"unknown": 0.019517838954925537
}
} |
| 9 | The following tables highlight other key measures of performance for Video:
## Connections
| | | | | Percent Change | |
| ------------------------ | ------ | ------ | ------ | -------------- | -------- |
| | | | | 2020 vs. | 2019 vs. |
| (in 000s) | 2020 | 2019 | 2018 | 2019 | 2018 |
| Video Connections | | | | | |
| Premium TV | 16,505 | 19,496 | 22,926 | (15.3)% | (15.0)% |
| AT&T TV NOW1 | 656 | 926 | 1,591 | (29.2) | (41.8) |
| Total Video Connections1 | 17,161 | 20,422 | 24,517 | (16.0)% | (16.7)% |
1 Beginning in January 2021, AT&T TV NOW has been combined with AT&T TV.
## Net Additions
| | | | | Percent Change | |
| -------------------- | ------- | ------- | ------- | -------------- | -------- |
| | | | | 2020 vs. | 2019 vs. |
| (in 000s) | 2020 | 2019 | 2018 | 2019 | 2018 |
| Video Net Additions | | | | | |
| Premium TV | (2,991) | (3,430) | (1,189) | 12.8% | —% |
| AT&T TV NOW1 | (270) | (665) | 436 | 59.4 | — |
| Net Video Additions1 | (3,261) | (4,095) | (753) | 20.4% | —% |
1 Beginning in January 2021, AT&T TV NOW has been combined with AT&T TV.
Service revenues are comprised of video entertainment subscription and advertising revenues. Revenues decreased in 2020 and 2019, largely driven by a decline in premium TV and OTT subscribers as we continue to focus on retention of existing subscribers with a particular focus on our high-value subscribers. Partially offsetting video revenue declines was higher advertising revenues during a general election year. Consistent with the rest of the industry, our customers continue to shift from a premium linear video service to more economically priced OTT and subscription video on demand offerings, which has impacted our video revenues.
Equipment revenue increased in 2020 primarily due to the nationwide introduction of our IP-based AT&T TV service in early 2020.
Operations and support expenses decreased in 2020 and 2019, largely driven by lower content costs from fewer subscribers, partially offset by annual content rate increases, including those associated with NFL SUNDAY TICKET and pandemic-related compassion payments made in the first half of 2020.
Depreciation expense decreased in 2020 and 2019, due to network assets becoming fully depreciated.
Operating income decreased in 2020 and increased in 2019. Our Video operating income margin was 6.0% in 2020, 6.4% in 2019 and 4.0% in 2018. Our Video EBITDA margin was 13.9% in 2020, 14.1% in 2019 and 12.1% in 2018.
## Broadband Results
| | | | | Percent Change | |
| ----------------------------------------- | ------- | ------- | ------- | -------------- | -------- |
| | | | | 2020 vs. | 2019 vs. |
| | 2020 | 2019 | 2018 | 2019 | 2018 |
| Operating revenues High-speed internet | $ 8,534 | $ 8,403 | $ 7,956 | 1.6% | 5.6% |
| Legacy voice and data services | 2,213 | 2,573 | 3,042 | (14.0) | (15.4) |
| Other service and equipment | 1,571 | 2,036 | 2,110 | (22.8) | (3.5) |
| Total Operating Revenues | 12,318 | 13,012 | 13,108 | (5.3) | (0.7) |
| Operating expenses Operations and support | 7,582 | 7,451 | 7,116 | 1.8 | 4.7 |
| Depreciation and amortization | 2,914 | 2,880 | 2,623 | 1.2 | 9.8 |
| Total Operating Expenses | 10,496 | 10,331 | 9,739 | 1.6 | 6.1 |
| Operating Income | 1,822 | 2,681 | 3,369 | (32.0) | (20.4) |
| Equity in Net Income (Loss) of Affiliates | — | — | — | — | — |
| Operating Contribution | $ 1,822 | $ 2,681 | $ 3,369 | (32.0)% | (20.4)% |
21 | {
"output": true,
"confidence": 0.9603019952774048,
"error": null,
"input_tokens": 1539,
"input_ms": 2690.189,
"output_tokens": 1,
"output_ms": 0.001,
"model": "Bitsy-3.3B-Q4_K_M",
"model_id": "cddb517d0470",
"probabilities": {
"true": 0.9603019952774048,
"false": 0.03016137331724167,
"unknown": 0.009536642581224442
}
} |
The matching pages connect lower revenue to postponed releases, reduced international travel, and declining video subscriptions.
These confidence scores reflect model likelihood, rather than a guarantee that an answer is correct. For how they are computed, see field-level confidence scoring in Chowder.
From model outputs to queryable data
A Boolean answer can become a filter. An extracted amount can become a numeric column. A set of extracted fields can become a typed structure that we join to other data or summarize in an aggregate.
Chowder's infer function accepts the requested output type as part of the query. For structured extraction, it constrains generation to the corresponding schema and converts the result into typed Arrow values. embed produces vectors for semantic similarity and related operations. PDF pages, images, and video or audio windows enter the engine as rows, giving these operations a common query surface.
This is what we mean by AI-native SQL: inference participates in the query's execution, and its results participate in the data model.
Built for analytical inference
Much of today's AI infrastructure is designed around interactive workloads: a chatbot response, a copilot suggestion, or an agent's next action. In those settings, the latency of an individual request matters directly to the person waiting for it.
Analyzing millions of documents or customer conversations introduces a different set of priorities. We want to keep models busy, avoid unnecessary computation, and reuse results as questions change. A fast response to one request is useful, but it doesn't tell us how efficiently we can process an entire collection.
We call this analytical inference.
Chowder is designed around throughput, cost efficiency, and reuse, with inference treated as an operation the engine can plan and schedule. Several parts of the architecture work toward that goal:
- Inference-aware query optimization. The planner can run inexpensive filters before model calls, collapse duplicate calls, and use a query's
LIMITto bound additional work. In the financial-report query, it can stop scheduling more inference once enough matching pages have been found, subject to work already in flight. If the task requires labeling every page, however, the engine still has to evaluate every page that needs a new result. - Reusable results. Chowder caches successful deterministic results from inference, embeddings, document parsing, and transcription. A later query can reuse a matching, valid entry instead of repeating the work. Cache identity accounts for the inputs, model identity, and operation-specific configuration, so a changed question or model can require new computation.
- Built-in model execution. The local engine manages model loading and execution for parsing, inference, and embeddings, with bounded concurrency and model-specific scheduling to control the work in flight.
- Local-first execution. The open-source engine runs in process on your own machine, with remote execution also supported. Our goal with Chowder Cloud is to carry the same approach to larger analytical workloads, so teams can move beyond a single machine while continuing to express their work in SQL.
The organizing idea is simple: the engine should understand that inference is expensive, and have a say in when that expense is necessary. It should be able to reason about model execution alongside filtering, joining, and aggregating.
Built in Rust on Apache Arrow and DataFusion
Chowder is built in Rust, with query planning designed around multimodal data and expensive AI computation. Its multimodal readers and AI-aware relational operators make inference part of query execution, alongside filtering, joining, and aggregating.
The execution model is streaming-first and batch-oriented. These describe different parts of the design: streaming determines when data moves, while batches determine how it is represented and processed. Readers produce rows incrementally, and operators exchange Arrow RecordBatch values rather than requiring the entire collection to be loaded before work begins. A record batch is a group of rows stored as typed columns.
For our financial-report query, this means parsing, inference, and filtering can overlap across pages as results become available. AI operators bound the work in flight and apply backpressure: when downstream processing cannot keep up, they limit how much additional work is admitted. Model scheduling depends on the backend; an Arrow record batch does not imply a model batch of the same size.
Streaming does not mean every query can return an answer immediately or use a fixed amount of memory. A full sort, for example, needs to see its input before returning globally ordered results. Joins and aggregations have their own state requirements. The goal is to preserve incremental execution where the query allows it and control expensive work as it moves through the plan.
A new chapter for SQL
SQL gave data teams a way to describe the answer they wanted while letting an engine determine how to compute it. We believe that separation is just as valuable when part of the computation requires an AI model.
The future of analytics shouldn't depend on building an increasingly complicated pipeline for every new question about unstructured data. We want to make SQL capable of working with that data directly, from reading the source to producing values we can analyze.
Just as analytical databases transformed how we process structured data, we believe AI-native query engines will transform how we analyze everything else. That's the future we're building with Chowder.
Get started with Chowder in the docs and run your first multimodal SQL query.
The world runs on SQL. Now SQL can understand the world.