The University of Southampton
University of Southampton Institutional Repository

Attacking Diophantus: solving a special case of bag containment

Attacking Diophantus: solving a special case of bag containment
Attacking Diophantus: solving a special case of bag containment
Conjunctive-query containment is the problem of deciding whether the answers of a given conjunctive query on an arbitrary database instance are always contained in the answers of a second query on the same instance. This is a very relevant question in query optimization, data integration, and other data management and artificial intelligence areas. The problem has been deeply studied and understood for the, so-called, set-semantics, i.e., when query answers and database instances are modelled as sets of tuples. In particular, it has been shown by Chandra and Merlin to be NPTIME-COMPLETE. On the contrary, when investigated under bag-semantics, a.k.a. multiset semantics, which allows for replicated tuples both in the underlying instance and in the query answers, it is not even clear whether the problem is decidable. Since this is exactly the standard interpretation for commercial relational database systems, the question turns out to be an important one. Multiple works on variations and restrictions of the bag-containment problem have been reported in the literature and, although the general problem is still open, we contribute with this article by solving a special case that has been identified as a major open problem on its own. More specifically, we study projection-free queries, i.e., queries without existentially quantified variables, and show decidability for the bag-containment problem of a projection-free conjunctive query into a generic conjunctive query. We prove indeed that deciding containment in this setting is in \pi^p_2. Our approach relies on the solution of a special case of the Diophantine inequality problem via a reduction to the linear inequality problem and clearly exposes inherent difficulties in the analysis of the general question.
399-413
Association for Computing Machinery
Konstantinidis, Georgios
f174fb99-8434-4485-a7e4-bee0fef39b42
Mogavero, Fabio
8a05b57c-db22-4216-95d1-7c35d5975ee1
Konstantinidis, Georgios
f174fb99-8434-4485-a7e4-bee0fef39b42
Mogavero, Fabio
8a05b57c-db22-4216-95d1-7c35d5975ee1

Konstantinidis, Georgios and Mogavero, Fabio (2019) Attacking Diophantus: solving a special case of bag containment. In Proceedings of the 38th ACM SIGMOD-SIGACT-SIGAI symposium on principles of database systems: PODS '19. Association for Computing Machinery. pp. 399-413 . (doi:10.1145/3294052.3319689).

Record type: Conference or Workshop Item (Paper)

Abstract

Conjunctive-query containment is the problem of deciding whether the answers of a given conjunctive query on an arbitrary database instance are always contained in the answers of a second query on the same instance. This is a very relevant question in query optimization, data integration, and other data management and artificial intelligence areas. The problem has been deeply studied and understood for the, so-called, set-semantics, i.e., when query answers and database instances are modelled as sets of tuples. In particular, it has been shown by Chandra and Merlin to be NPTIME-COMPLETE. On the contrary, when investigated under bag-semantics, a.k.a. multiset semantics, which allows for replicated tuples both in the underlying instance and in the query answers, it is not even clear whether the problem is decidable. Since this is exactly the standard interpretation for commercial relational database systems, the question turns out to be an important one. Multiple works on variations and restrictions of the bag-containment problem have been reported in the literature and, although the general problem is still open, we contribute with this article by solving a special case that has been identified as a major open problem on its own. More specifically, we study projection-free queries, i.e., queries without existentially quantified variables, and show decidability for the bag-containment problem of a projection-free conjunctive query into a generic conjunctive query. We prove indeed that deciding containment in this setting is in \pi^p_2. Our approach relies on the solution of a special case of the Diophantine inequality problem via a reduction to the linear inequality problem and clearly exposes inherent difficulties in the analysis of the general question.

This record has no associated files available for download.

More information

Accepted/In Press date: 30 June 2019
e-pub ahead of print date: June 2019
Published date: June 2019
Venue - Dates: 38th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems: ACM SIGMOD/PODS International Conference on Management of Data, Amsterdam, The Netherlands, Amsterdam, Netherlands, 2019-06-30 - 2019-07-05

Identifiers

Local EPrints ID: 433824
URI: http://eprints.soton.ac.uk/id/eprint/433824
PURE UUID: 96cfdebc-a117-4b65-8e40-6d58a489d418

Catalogue record

Date deposited: 04 Sep 2019 16:30
Last modified: 16 Mar 2024 03:53

Export record

Altmetrics

Contributors

Author: Georgios Konstantinidis
Author: Fabio Mogavero

Download statistics

Downloads from ePrints over the past year. Other digital versions may also be available to download e.g. from the publisher's website.

View more statistics

Atom RSS 1.0 RSS 2.0

Contact ePrints Soton: eprints@soton.ac.uk

ePrints Soton supports OAI 2.0 with a base URL of http://eprints.soton.ac.uk/cgi/oai2

This repository has been built using EPrints software, developed at the University of Southampton, but available to everyone to use.

We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we will assume that you are happy to receive cookies on the University of Southampton website.

×