On the expressive power of query languages

Two main topics are addressed. First, an algebraic approach is presented to define a general notion of expressive power. Heterogeneous algebras represent information systems and morphisms represent the correspondences between the instances of databases, the correspondences between answers, and the correspondences between queries. An important feature of this new notion of expressive power is that query languages of different types can be compared with respect to their expressive power. In the case of relational query languages, the new notion of expressive power is shown to be equivalent to the notion used by Chandra and Harel. In the case of nonrelational query languages, the versatility of the new notion of expressive power is demonstrated by comparing the fixpoint query languages with an object-oriented query language called FQL. The expressive power of the Functional Query Language FQL is the second main topic of this paper. The specifications of FQL functions can be recursive or even mutually recursive, FQL has a fixpoint semantics based on a complete lattice consisting of bag functions. The query language FQL is shown to be more expressive than the fixpoint query languages. This result implies that FQL is also more expressive than Datalog with stratified negation. Examples of recursive FQL functions are given that determine the ancestors of persons and the bill of materials.

[1]  Beat Wüthrich Large deductive databases with constraints , 1991 .

[2]  Norbert Fuhr,et al.  A Probabilistic Framework for Vague Queries and Imprecise Information in Databases , 1990, VLDB.

[3]  Adrian Walker,et al.  Towards a Theory of Declarative Knowledge , 1988, Foundations of Deductive Databases and Logic Programming..

[4]  Neil Immerman,et al.  Relational Queries Computable in Polynomial Time , 1986, Inf. Control..

[5]  Ashok K. Chandra Theory of database queries , 1988, PODS '88.

[6]  David Beech,et al.  A Foundation for Evolution from Relational to Object Databases , 1988, EDBT.

[7]  P. Dangerfield Logic , 1996, Aristotle and the Stoics.

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

[9]  Joseph Albert,et al.  Algebraic Properties of Bag Data Types , 1991, VLDB.

[10]  Phokion G. Kolaitis The Expressive Power of Stratified Programs , 1991, Inf. Comput..

[11]  Setsuo Ohsuga,et al.  INTERNATIONAL CONFERENCE ON VERY LARGE DATA BASES , 1977 .

[12]  S. Abiteboul,et al.  Fixpoint extensions of first-order logic and datalog-like languages , 1989, [1989] Proceedings. Fourth Annual Symposium on Logic in Computer Science.

[13]  Robert A. Kowalski,et al.  The Semantics of Predicate Logic as a Programming Language , 1976, JACM.

[14]  Franz Baader A Formal Definition for the Expressive Power of Knowledge Representation Languages , 1990, ECAI.

[15]  Yuri Gurevich,et al.  Toward logic tailored for computational complexity , 1984 .

[16]  Stefano Ceri,et al.  Complex Transitive Closure Queries on a Fragmented Graph , 1990, ICDT.

[17]  Alfred V. Aho,et al.  Universality of data retrieval languages , 1979, POPL.

[18]  Vijay V. Raghavan,et al.  Design of an Integrated Information Retrieval/Database Management System , 1990, IEEE Trans. Knowl. Data Eng..

[19]  Alexander Dekhtyar,et al.  Information Retrieval , 2018, Lecture Notes in Computer Science.

[20]  Saharon Shelah,et al.  Fixed-point extensions of first-order logic , 1985, 26th Annual Symposium on Foundations of Computer Science (sfcs 1985).

[21]  Michael McGill,et al.  Introduction to Modern Information Retrieval , 1983 .

[22]  David S. Johnson,et al.  Computers and Intractability: A Guide to the Theory of NP-Completeness , 1978 .

[23]  J. D. Uiiman,et al.  Principles of Database Systems , 2004, PODS 2004.

[24]  Kevin Wilkinson,et al.  The Iris Architecture and Implementation , 1990, IEEE Trans. Knowl. Data Eng..

[25]  David Harel,et al.  Structure and complexity of relational queries , 1980, 21st Annual Symposium on Foundations of Computer Science (sfcs 1980).