Efficient Evaluation of Arbitrary Relational Calculus Queries
Martin Raszyk, David Basin, Sr{\dj}an Krsti\'c, Dmitriy Traytel

TL;DR
This paper introduces a new translation method for relational calculus queries into safe-range queries, enabling efficient evaluation using standard database systems and improving over previous approaches in time complexity.
Contribution
A novel translation of arbitrary relational calculus queries into safe-range queries that guarantees finiteness and enables efficient evaluation via SQL.
Findings
Improved time complexity over existing methods
Empirical validation on realistic and synthetic datasets
Enables evaluation of arbitrary RC queries using standard DBMSs
Abstract
The relational calculus (RC) is a concise, declarative query language. However, existing RC query evaluation approaches are inefficient and often deviate from established algorithms based on finite tables used in database management systems. We devise a new translation of an arbitrary RC query into two safe-range queries, for which the finiteness of the query's evaluation result is guaranteed. Assuming an infinite domain, the two queries have the following meaning: The first is closed and characterizes the original query's relative safety, i.e., whether given a fixed database, the original query evaluates to a finite relation. The second safe-range query is equivalent to the original query, if the latter is relatively safe. We compose our translation with other, more standard ones to ultimately obtain two SQL queries. This allows us to use standard database management systems to…
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.
