Relational queries over interpreted structures
- 1 July 2000
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 47 (4) , 644-680
- https://doi.org/10.1145/347476.347477
Abstract
We rework parts of the classical relational theory when the underlying domain is a structure with some interpreted operations that can be used in queries. We identify parts of the classical theory that go through 'as before' when interpreted structure is present, parts that go through only for classes of nicely behaved structures, and parts that only arise in the interpreted case. The first category include a number of results on language equivalence and expressive power characterizations for the active-domain semantics for a variety of logics. Under this semantics, quantifiers range over elements of a relational database. The main kind of results we prove here are generic collapse results: for generic queries, adding operations beyond order, does not give us extra power. The second category includes results on the natural semantics, under which quantifiers range over the entire interpreted structure. We prove, for a variety of structures, natural-active collapse results, showing that using unrestricted quantification does not give us any extra power. Moreover, for a variety of structures, including the real field, we give a set of algorithms for eliminating unbounded quantifications in favor of bounded ones. Furthermore, we extend these collapse results to a new class of higher-order logics that mix unbounded and bounded quantification. We give a set of normal forms for these logics, under special conditions on the interpreted structures. As a by-product, we obtain an elementary proof of the fact that parity test is not definable in the relational calculus with polynomial inequality constraints. We also give examples of structures with nice model-theoretic properties over which the natural-active collapse fails.Keywords
This publication has 35 references indexed in Scilit:
- Extended order-generic queriesAnnals of Pure and Applied Logic, 1999
- Query Languages for Bags and Aggregate FunctionsJournal of Computer and System Sciences, 1997
- Finitely Representable DatabasesJournal of Computer and System Sciences, 1997
- Counting Quantifiers, Successor Relations, and Logarithmic SpaceJournal of Computer and System Sciences, 1997
- First-order queries on databases embedded in an infinite structureInformation Processing Letters, 1996
- Domain independence and the relational calculusActa Informatica, 1994
- On the expressive power of database queries with intermediate typesJournal of Computer and System Sciences, 1991
- On uniformity within NC1Journal of Computer and System Sciences, 1990
- Fixed-point extensions of first-order logicAnnals of Pure and Applied Logic, 1986
- Structure and complexity of relational queriesJournal of Computer and System Sciences, 1982