[Paper Review] Exponential Lower Bounds and Separation for Query Rewriting
This paper establishes exponential lower bounds for pure first-order and nonrecursive Datalog rewritings of conjunctive queries over OWL 2 QL ontologies by linking query rewriting size to monotone Boolean circuit complexity. It shows that pure rewritings are exponentially larger than original queries, while impure rewritings using additional constants can be polynomial, proving exponential succinctness gains.
We establish connections between the size of circuits and formulas computing monotone Boolean functions and the size of first-order and nonrecursive Datalog rewritings for conjunctive queries over OWL 2 QL ontologies. We use known lower bounds and separation results from circuit complexity to prove similar results for the size of rewritings that do not use non-signature constants. For example, we show that, in the worst case, positive existential and nonrecursive Datalog rewritings are exponentially longer than the original queries; nonrecursive Datalog rewritings are in general exponentially more succinct than positive existential rewritings; while first-order rewritings can be superpolynomially more succinct than positive existential rewritings.
Motivation & Objective
- To determine the worst-case size of first-order and nonrecursive Datalog rewritings for conjunctive queries over OWL 2 QL ontologies.
- To investigate the impact of allowing non-signature constants (impure rewritings) on rewriting size and succinctness.
- To establish theoretical limits on the efficiency of query rewriting in ontology-based data access (OBDA).
- To explore whether FO-rewritings can be significantly more succinct than positive existential or nonrecursive Datalog rewritings.
- To resolve open questions on the relative succinctness of different rewriting formalisms in the absence of built-in predicates and constants.
Proposed method
- Established a correspondence between pure rewritings for conjunctive queries over OWL 2 QL and monotone Boolean circuits computing functions such as Cliqueₙ,ₖ and Matching₂ₙ.
- Leveraged known circuit complexity results—specifically exponential lower bounds for monotone circuits computing Cliqueₙ,ₖ and Matching₂ₙ—to derive lower bounds for pure rewritings.
- Used the fact that monotone circuits for Cliqueₙ,ₖ require exponential size, implying that any pure positive existential or nonrecursive Datalog rewriting must also be exponentially large in the worst case.
- Proved that impure rewritings, which use additional constants not present in the original query or ontology, can be made polynomial by encoding indices in binary and using equality over these constants.
- Constructed a binary encoding of indices using log N variables to replace numerical constants, enabling polynomial-size rewritings.
- Demonstrated that the use of built-in equality and numerical constants allows impure rewritings to achieve exponential succinctness over pure rewritings.
Experimental results
Research questions
- RQ1Do there exist an OWL 2 QL TBox 𝒯 and a sequence of conjunctive queries 𝒒ₙ such that any pure positive existential or nonrecursive Datalog rewriting for 𝒒ₙ over 𝒯 is of exponential size?
- RQ2Can first-order rewritings be superpolynomially more succinct than positive existential rewritings for conjunctive queries over OWL 2 QL?
- RQ3Are nonrecursive Datalog rewritings in general exponentially more succinct than positive existential rewritings when restricted to pure rewritings?
- RQ4What is the relative succinctness of first-order versus nonrecursive Datalog rewritings in the pure rewriting setting?
- RQ5Can impure rewritings using non-signature constants achieve polynomial size, and if so, how does this compare to the exponential blow-up in pure rewritings?
Key findings
- Pure positive existential rewritings for conjunctive queries over OWL 2 QL ontologies require exponential size in the worst case, due to exponential lower bounds in monotone circuit complexity for functions like Cliqueₙ,ₖ.
- Pure nonrecursive Datalog rewritings are in general exponentially more succinct than pure positive existential rewritings, as shown by circuit complexity separations.
- Pure first-order rewritings can be superpolynomially more succinct than pure positive existential rewritings, under the assumption that NP is not in P/poly.
- Impure positive existential and nonrecursive Datalog rewritings can be made polynomial in size by using built-in constants and equality, achieving exponential succinctness over pure rewritings.
- The use of binary encoding for indices and null values allows impure rewritings to avoid exponential blow-up, enabling efficient evaluation in practice.
- The results imply that the use of non-signature constants—such as 0 and 1, or encoded indices—is essential for achieving polynomial-size rewritings in the worst case.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.