Conjunctive queries tutorial

Feb 24, 2020This paper is the tutorial we wish we had had available when starting our own research on constant delay enumeration for conjunctive queries  ReferencesRecommendations

Are conjunctive queries NP-complete?

Conjunctive queries are NP-complete with respect to combined complexity, while the data complexity of conjunctive queries is very low, in the parallel complexity class AC0, which is contained in LOGSPACE and thus in polynomial time.

,

How to write a conjunctive query in Datalog?

When writing CQs in Datalog form, we can also choose to use equality:

  • for example
  • the query q(x) :
  • R(x
  • y)
  • y = a is a valid CQ.
    However, we are not allowed to use any other predicate symbols, such as : , 6 =.
    So far we looked at the syntactic definition of a conjunctive query.
    We now turn our attention to the semantics of CQs.
  • ,

    What is a conjunctive query?

    Conjunctive Queries are the simplest form of queries that can be expressed over a database, but as we will see they have many interesting properties and a deep theory behind them.
    There are many ways to define a Conjunctive Query.
    We will start from a logical perspective, using Datalog notation.

    ,

    What is the computational complexity of evaluating conjunctive queries?

    For the study of the computational complexity of evaluating conjunctive queries, two problems have to be distinguished.
    The first is the problem of evaluating a conjunctive query on a relational database where both the query and the database are considered part of the input.


    Categories

    Conjunctive queries problems
    Conjunctive queries inclusion dependencies
    Graphical conjunctive queries
    Inference conjunctive queries
    Join conjunctive queries
    Union of conjunctive queries
    Equivalence of conjunctive queries
    Evaluation of conjunctive queries
    Theory of conjunctive queries
    Conjunctive queries equality
    Conjunctive query answering
    Conjunctive query algorithm
    Conjunctive conjunction examples
    Contact me if you have any queries
    Ovsdb-client query example
    Conjunctive queries
    Conjunctive query containment
    Conjunctive query combine complexity
    Contact us if you have any queries
    Concur support contact