Database Research needs an Abstract Relational Query Language
Wolfgang Gatterbauer, Diandre Miguel Sabale

TL;DR
This paper proposes an Abstract Relational Query Language (ARQL) to improve the understanding, comparison, and design of relational queries, especially in the context of machine-generated queries and diverse user interfaces.
Contribution
It introduces ARQL as a semantics-first metalanguage that separates query intent from syntax, supporting multiple modalities and conventions, with a concrete instance called Abstract Relational Calculus (ARC).
Findings
ARC generalizes Tuple Relational Calculus.
ARC supports textual, graphical, and machine-readable modalities.
ARQL facilitates comparison and design of relational languages.
Abstract
For decades, SQL has been the default language for composing queries, but it is increasingly used as an artifact to be read and verified rather than authored. With Large Language Models (LLMs), queries are increasingly machine-generated, while humans read, validate, and debug them. This shift turns relational query languages into interfaces for back-and-forth communication about intent, which will lead to a rethinking of relational language design, and more broadly, relational interface design. We argue that this rethinking needs support from an Abstract Relational Query Language (ARQL): a semantics-first reference metalanguage that separates query intent from user-facing syntax and makes underlying relational patterns explicit and comparable across user-facing languages. An ARQL separates a query into (i) a relational core (the compositional structure that determines intent), (ii)…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Database Systems and Queries · Semantic Web and Ontologies · Natural Language Processing Techniques
