arXiv:2608.12272cs.DBAug 2026

Manuscript Offprint

arXiv:2608.12272

An Extended Tutorial and Vocabulary for Relational Language Design in an Era of AI-Assisted Query Generation

Wolfgang Gatterbauer

Abstract.

Relational query languages have been studied and used for more than 50 years, with SQL dominant in practice. Today, queries are increasingly generated by machines and read by humans. At the same time, the landscape also includes dataframe, pipeline, logical, functional, graph, and relational programming notations. These developments invite two related questions beyond expressive power: which relational structures do languages make explicit, and how well can notation support users in reading and revising queries?

This 3-hour tutorial extends an earlier SIGMOD’26 tutorial in three directions: recursive and path queries (connecting relational and graph query languages), nested relational data, and relational languages for problems beyond PTIME. Rather than beginning from formal definitions, we start from example queries and compare how different languages express the same intent. To compare recurring structure across notations, we use Abstract Relational Calculus (ARC) and Relational Diagrams as reference representations.

From these examples, we develop a vocabulary for relational language design, including information need, query mapping, relational pattern structure, relational pattern denotation, and semantic conventions. Participants will leave with a framework for comparing existing and future relational languages, a precise vocabulary for articulating design trade-offs, and a concrete set of examples connecting classical database languages with alternative proposals.

PVLDB Reference Format: PVLDB, 19(12): 4932-4938, 2026. doi:10.14778/3827998.3828153

PVLDB Artifact Availability: The slides from the tutorial will be made available on the tutorial web page: https://northeastern-datalab.github.io/relational-language-tutorial/.

1. Introduction

Donald Knuth is quoted as saying, “I think of a programming language as a tool to convert a programmer’s mental images into precise operations that a machine can perform” (Morris, 2013). In the same spirit, the database community has primarily viewed relational query languages as specifications for translating information needs into executable commands. This perspective has helped make expressive power a central criterion for comparing and designing relational languages (Codd, 1972). Yet what a language can say is only one aspect of language design. Another one is how effectively it lets us formulate, understand, and revise what we want to say.

In his 1979 Turing Award lecture “Notation as a Tool of Thought” (Iverson, 1980), Iverson cites Whitehead via Cajori: “By relieving the brain of all unnecessary work, a good notation sets it free to concentrate on more advanced problems, and in effect increases (our) mental power…” Good notation can make relational structure explicit (e.g., a join path) so that readers can perceive it directly rather than having to reconstruct and retain it in their minds as they read a query. Yet this view of notation design for “cognition enhancement” has not received much attention in relational language design. It echoes the idea of linguistic relativity: the languages we use can shape how we represent and reason about problems (Wikipedia, 2026).

This perspective is especially timely as generative AI and large language models (LLMs) are changing how users interact with data. Queries are no longer only instructions for machines. Increasingly, they are shared working representations through which humans can understand what machines have done or intend to do: machines generate and transform queries, while humans inspect, interpret, verify, and revise them (Gatterbauer et al., 2022, Fig. 2). As noted in (Ailamaki et al., 2025; Gatterbauer et al., 2022; Gatterbauer and Sabale, 2026), this shifts attention from human query composition toward machine query generation and human query interpretation. When machine-generated queries can be wrong or misleading, making them easy to read, verify, and revise becomes crucial.

At the same time, there is renewed interest in relational language design. A number of recent efforts propose extensions or alternatives to SQL (including (Neumann and Leis, 2024; Shute et al., 2024; Aref et al., 2025; prq, 2025)) and differ in how they present relational structure: through nested or pipelined composition, named or positional access to relation components, and tuple or domain variables. Such choices affect which structural patterns are easy to recognize and which revisions are easy to make. Yet comparing these choices systematically requires a common vocabulary that separates notation from relational structure and semantics.

What we need, more broadly, is systematic research about how design choices in relational languages affect how humans and machines think and reason. A necessary ingredient is a framework and vocabulary for discussing how different relational languages realize the same relational intent (or query mapping) while making different structures, assumptions, and notations visible to humans and machines. Without a precise vocabulary, debates about relational languages tend to confuse surface syntax and semantic conventions.

This tutorial develops and applies such a relational language design framework (Fig. 1) that distinguishes and disentangles several concepts that discussions of query languages often conflate. Rather than beginning with formal definitions, we start from a fixed set of queries and compare their realizations across various relational languages. The examples expose differences in relational pattern, semantic conventions, and structural notation before these distinctions are formalized. To make recurring relational patterns explicit, we use Abstract Relational Calculus (ARC) (Gatterbauer and Sabale, 2026), together with Relational Diagrams (Gatterbauer and Dunne, 2025; Gatterbauer and Dunne, 2024), as common reference representations. Our goal is to survey languages, clarify the design space, make the comparison concrete through a set of recurring examples, and develop a precise vocabulary for relational language design to enable clear communication.

This 3-hour tutorial extends an earlier SIGMOD 2026 tutorial (Gatterbauer, 2026b) in three directions: (1) recursion and path queries (connecting relational and graph query languages), (2) nested relational data, and (3) relational formalisms for problems beyond PTIME.

Figure

Figure 1. Relationships between concepts in the vocabulary of our relational language design framework that we will use.

References (47)