How expressive is stratified aggregation?

We present results on the expressive power of various deductive database languages extended with stratified aggregation. We show that (1) Datalog extended with stratified aggregation cannot express a query to count the number of paths between every pair of nodes in an acyclic graph, (2) Datalog extended with stratified aggregation and arithmetic on integers (the + operator) can express allcomputable queries on ordered domains, and (3) Datalog extended with stratified aggregation and generic function symbols can express allcomputable queries (on ordered or unordered domains). Note that without stratified aggregation, the above extensions of Datalog cannot express all computable queries. We show that replacing stratified aggregation by stratified negation preserves expressiveness. We identify subclasses of the above languages that are complete (can express all, and only the, computable queries).

[1]  David Harel,et al.  Computable Queries for Relational Data Bases , 1980, J. Comput. Syst. Sci..

[2]  Kenneth A. Ross,et al.  Monotonic aggregation in deductive databases , 1992, J. Comput. Syst. Sci..

[3]  Divesh Srivastava,et al.  Extending the Well-Founded and Valid Semantics for Aggregation , 1993, ILPS.

[4]  J. Lloyd Foundations of Logic Programming , 1984, Symbolic Computation.

[5]  John S. Schlipf,et al.  The expressive powers of the logic programming semantics (extended abstract) , 1990, PODS.

[6]  Krzysztof R. Apt,et al.  Arithmetic classification of perfect models of stratified programs , 1991, Fundam. Informaticae.

[7]  M. W. Shields An Introduction to Automata Theory , 1988 .

[8]  Inderpal Singh Mumick Query Optimization in Deductive and Relational Databases , 1991 .

[9]  John S. Schlipf,et al.  The Expressive Powers of the Logic Programming Semantics , 1995, J. Comput. Syst. Sci..

[10]  Jeffrey D. Ullman,et al.  Implementation of logical query languages for databases , 1985, TODS.

[11]  Serge Abiteboul,et al.  Generic Computation and its complexity , 1991, STOC '91.

[12]  Sten-Åke Tärnlund,et al.  Horn clause computability , 1977, BIT.

[13]  Hamid Pirahesh,et al.  The Magic of Duplicates and Aggregates , 1990, VLDB.

[14]  Sergio Greco,et al.  Minimum and maximum predicates in logic programming , 1991, PODS '91.

[15]  Jeffrey D. Uuman Principles of database and knowledge- base systems , 1989 .

[16]  Peter J. Stuckey,et al.  Semantics of Logic Programs with Aggregates , 1991, ISLP.

[17]  Shamim A. Naqvi,et al.  Non-Deterministic Choice in Datalog , 1988, JCDKB.

[18]  Allen Van Gelder,et al.  The well-founded semantics of aggregation , 1992, PODS.

[19]  Alberto O. Mendelzon,et al.  Low Complexity Aggregation in GraphLog and Datalog , 1990, Theor. Comput. Sci..

[20]  Carlo Zaniolo,et al.  Non-Determinism in Deductive Databases , 1991, DOOD.

[21]  Jianwen Su,et al.  Untyped sets, invention, and computable queries , 1989, PODS '89.