SAGE achieves the strongest overall SemBench performance and, on a representative factorable join, reduces pairwise model calls by more than two orders of magnitude, yielding a 358-fold measured cost reduction.
Abstract
SQL systems increasingly expose AI functions for tasks such as classification, extraction, filtering, ranking, retrieval, joining, and summarization. Despite their diverse APIs, these functions play only three relational roles: transforming individual rows, aggregating groups, or generating relationships between row pairs. We present SAGE (Self-Adaptive Generative Execution), a unified logical and physical framework that captures these roles with three typed primitives, AI_SCALAR, AI_AGG, and AI_JOIN, and composes them naturally with standard relational operators. All primitives share a confidence-gated execution interface while supporting physical strategies tailored to their relational shape. The main challenge is AI_JOIN, where SAGE analyzes the predicate, decomposes compound conditions when possible, and uses a recipe card together with a small label-free probe to select among complete execution strategies. Across a broad audit of public AI operators and evaluations spanning scalar, aggregate, and join workloads, this formulation covers common AI functionality while consistently improving execution quality and efficiency. SAGE achieves the strongest overall SemBench performance and, on a representative factorable join, reduces pairwise model calls by more than two orders of magnitude, yielding a 358-fold measured cost reduction.
A Multilayered Evaluation Framework is introduced that decouples deterministic database logic from flexible AI semantics and achieves state-of-the-art overall accuracy across both platforms, proposing a reliable standard for benchmarking AI-powered SQL generators.
Tarfah Alrashed, Fatma Ozcan, Per Jacobsson et al.· 1 citation
Testing Relational Database Management Systems (RDBMSs) is inherently challenging because SQL, the primary language for interacting with RDBMSs, exhibits a vast and highly complex grammar with hundreds of interdependent production rules in the Extended Backus--Naur Form. While existing grammar-based testing techniques...
Hong-Tao Zhou, Ying-Ying Zheng, Yu Gao et al.· Proceedings of the ACM on So...· 0 citations
Large language model (LLM) agents increasingly need reliable access to structured databases, yet that access is often fragmented across custom drivers, framework-specific tools, and non-standard execution interfaces. This paper presents a unified SQL tool interface based on the Model Context Protocol (MCP): database op...
Eric Julianto, Dian Alhusari, S. A. Ardiyansa et al.· International Conference on...· 0 citations
The resulting framework provides a vendor-neutral architectural blueprint that systematically connects scalability requirements, platform responsibilities, operational controls, and AI lifecycle needs, enabling engineering teams to evaluate and evolve data and AI platforms incrementally.
Santoshi Maddali· World Journal of Advanced Re...· 0 citations
Git4Data is presented, a database-native version-control layer for agentic workflows that sheds light on how relational databases can better support AI agents through efficient versioning.
Hongshen Gou, Zu-Yu Zhang, Yu-Ze Sun et al.· 0 citations
Modern LLMs and AI agents increasingly support data engineering workflows that integrate evidence from unstructured sources. Such pipelines typically do data retrieval, integration, and ranking before proceeding to more complex agentic reasoning or actions, e.g., for scientific discovery. The core retrieval problem in...
Jia-Ming Liang, H. Jones, Jacob R. Gardner et al.· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.