2000 character limit reached
Counting Answers to Existential Positive Queries: A Complexity Classification (1601.03240v2)
Published 13 Jan 2016 in cs.DB and cs.CC
Abstract: Existential positive formulas form a fragment of first-order logic that includes and is semantically equivalent to unions of conjunctive queries, one of the most important and well-studied classes of queries in database theory. We consider the complexity of counting the number of answers to existential positive formulas on finite structures and give a trichotomy theorem on query classes, in the setting of bounded arity. This theorem generalizes and unifies several known results on the complexity of conjunctive queries and unions of conjunctive queries.