cs.DBSep 23, 2026

KathDB-FAO: Synthesized Query Plans in a Multimodal DBMS

Authors: Guorui Xiao, Douglas Brown, Artur Borycki, Magdalena Balazinska

Organizations: University of Washington · Teradata

Abstract

We design, implement, and evaluate KathDB-FAO, a new query evaluation subsystem for our KathDB multimodal DBMS. KathDB-FAO takes as input a query in natural language (NL) and converts it into a query execution plan where each operator is a function whose body is synthesized during query evaluation, which allows powerful query-specific optimizations. To generate accurate and efficient plans from NL, KathDB-FAO first extracts fine-grained atomic actions for correctness, then establishes contracts on the inputs and outputs of those actions and groups them for efficiency, and finally synthesizes the function for each group on the fly. On SemBench, KathDB-FAO cuts execution cost by 58.8% on average across scenarios compared with the next best system, at comparable or better quality.

Figures & tables

Explore similar work

CardsList
  1. Prompt as a Data Type: In-Database LLM Prompt Management and Rewriting

    Jul 23, 2026Denis Mayr Lima Martins, Gottfried VossenPrompt EngineeringQueries