A Comprehensive Tutorial on over 100 Years of Diagrammatic Representations of Logical Statements and Relational Queries

Wolfgang Gatterbauer
2024-03-05
Abstract:Query formulation is increasingly performed by systems that need to guess a user's intent (e.g. via spoken word interfaces). But how can a user know that the computational agent is returning answers to the "right" query? More generally, given that relational queries can become pretty complicated, how can we help users understand relational queries, whether human-generated or automatically generated? Now seems the right moment to revisit a topic that predates the birth of the relational model: developing visual metaphors that help users understand relational queries.
Databases,Logic in Computer Science
What problem does this paper attempt to address?
The paper focuses on helping users understand and read existing relational queries, especially with the application of voice interfaces and large language models in generating query codes. It explores the use of visualization methods to verify the correctness of queries and improve comprehension efficiency. The paper reviews the main visual metaphors used for visualizing logical statements and relational expressions over the past century, compares different representations with relational algebra and relational calculus mappings, and discusses early and modern visual query representations, as well as future challenges in this field.