Creative Commons Attribution 3.0 Unported license
Conjunctive queries are basic and heavily studied database queries; in relational algebra, they are the select-project-join queries. In this article, we study the fundamental problem of counting, given a conjunctive query and a relational database, the number of answers to the query on the database. In particular, we study the complexity of this problem relative to sets of conjunctive queries. We present a trichotomy theorem, which shows essentially that this problem on a set of conjunctive queries is either tractable, equivalent to the parameterized CLIQUE problem, or as hard as the parameterized counting CLIQUE problem; the criteria describing which of these situations occurs is simply stated, in terms of graph-theoretic conditions.
@InProceedings{chen_et_al:LIPIcs.ICDT.2015.110,
author = {Chen, Hubie and Mengel, Stefan},
title = {{A Trichotomy in the Complexity of Counting Answers to Conjunctive Queries}},
booktitle = {18th International Conference on Database Theory (ICDT 2015)},
pages = {110--126},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-939897-79-8},
ISSN = {1868-8969},
year = {2015},
volume = {31},
editor = {Arenas, Marcelo and Ugarte, Mart{\'\i}n},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ICDT.2015.110},
URN = {urn:nbn:de:0030-drops-49804},
doi = {10.4230/LIPIcs.ICDT.2015.110},
annote = {Keywords: database theory, query answering, conjunctive queries, counting complexity}
}