Relational expressive power of constraint query languages
- 1 January 1998
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 45 (1) , 1-34
- https://doi.org/10.1145/273865.273870
Abstract
The expressive power of first-order query languages with several classes of equality and inequality constraints is studied in this paper. We settle the conjecture that recursive queries such as parity test and transitive closure cannot be expressed in the relational calculus augmented with polynomial inequality constraints over the reals. Furthermore, noting that relational queries exhibit several forms of genericity, we establish a number of collapse results of the following form: The class of generic Boolean queries expressible in the relational calculus augmented with a given class of constraints coincides with the class of queries expressible in the relational calculus (with or without an order relation). We prove such results for both the natural and active-domain semantics. As a consequence, the relational calculus augmented with polynomial inequalities expresses the same classes of generic Boolean queries under both the natural and active-domain semantics.In the course of proving these results for the active-domin semantics, we establish Ramsey-type theorems saying that any query involving certain kinds of constraints coincides with a constraint-free query on databases whose elements come from a certain infinite subset of the domain. To prove the collapse results for the natural semantics, we make use of techniques from nonstandard analysis and from the model theory of ordered structures.Keywords
This publication has 21 references indexed in Scilit:
- First-order queries on databases embedded in an infinite structureInformation Processing Letters, 1996
- Constraint Query LanguagesJournal of Computer and System Sciences, 1995
- Domain independence and the relational calculusActa Informatica, 1994
- Ramsey TheoryScientific American, 1990
- Definable sets in ordered structures. IIITransactions of the American Mathematical Society, 1988
- Definable sets in ordered structures. IITransactions of the American Mathematical Society, 1986
- The Format ModelJournal of the ACM, 1984
- Definable sets in ordered structuresBulletin of the American Mathematical Society, 1984
- Computable queries for relational data basesJournal of Computer and System Sciences, 1980
- The isomorphism property in nonstandard analysis and its use in the theory of Banach spacesThe Journal of Symbolic Logic, 1974