Rewriting with Acyclic Queries: Mind Your Head
Gaetano Geck, Jens Keppeler, Thomas Schwentick, Christopher Spinrath

TL;DR
This paper investigates the conditions under which acyclic conjunctive queries can be rewritten using views, establishing when such rewritings exist and analyzing the complexity of the problem.
Contribution
It provides new results on the existence of acyclic rewritings and delineates the boundary between tractable and intractable cases based on query and view properties.
Findings
Acyclic queries have acyclic rewritings if any rewriting exists.
Rewriting complexity is NP-hard for bounded arity schemas, even with acyclic or hierarchical queries.
Rewriting becomes tractable when views are free-connex acyclic.
Abstract
The paper studies the rewriting problem, that is, the decision problem whether, for a given conjunctive query and a set of views, there is a conjunctive query over that is equivalent to , for cases where the query, the views, and/or the desired rewriting are acyclic or even more restricted. It shows that, if itself is acyclic, an acyclic rewriting exists if there is any rewriting. An analogous statement also holds for free-connex acyclic, hierarchical, and q-hierarchical queries. Regarding the complexity of the rewriting problem, the paper identifies a border between tractable and (presumably) intractable variants of the rewriting problem: for schemas of bounded arity, the acyclic rewriting problem is NP-hard, even if both and the views in are acyclic or hierarchical. However, it becomes tractable if the views are free-connex…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
