Abstract
Incomplete databases, characterized by missing information or "nulls," present a challenge for query processing. Traditional approaches focus on "certain answers"—facts guaranteed to be true across all possible completions. This paper explores a more informative paradigm: representing query results as "certain answers as objects," which are themselves incomplete databases. We demonstrate that while these objects are computable for Union of Conjunctive Queries with inequalities ($UCQ^{\neq}$), they are subject to an exponential size explosion, posing significant practical challenges.
Introduction
Real-world databases frequently contain incomplete information. Conventionally, queries over such databases return a set of certain tuples. However, this often discards valuable information. A more robust approach is to return a new incomplete database that represents the range of possible answers as informatively as possible. This "certain answers as objects" framework aims to preserve the maximum amount of certain information. This paper addresses the computability and complexity of generating these objects for $UCQ^{\neq}$ queries under the open-world assumption.
Methodology: Finite Reduction and Direct Products
The computation of certain answer objects relies on two primary technical mechanisms. First, the authors employ Finite Reduction, proving that the "most informative" answer can be derived from a finite subset of possible database completions, despite the theoretically infinite number of completions.
Second, these finite answers are merged using a Direct Product operation. This mathematical construction acts as a "greatest lower bound" in terms of informativeness, capturing the intersection of truths across all possible versions of the data.
The Complexity Trap
While the paper provides a formal algorithm confirming the computability of these objects, it also delivers a critical negative result regarding their size. The authors demonstrate that the smallest possible "certain answer object" can be exponentially larger than the input database.
This "Complexity Trap" is proven using a construction involving directed cycles of prime lengths. By querying these structures, the resulting certain answer object must account for the combinations of these cycles, leading to an exponential growth in the number of nodes and relations required to represent the certain information.
Key Results and Implications
The main findings are summarized in two parts:
- Computability: For any $UCQ^{\neq}$ query, a certain answer object exists and is effectively computable via canonical answers and direct products.
- Exponential Lower Bound: There exists a family of databases and simple conjunctive queries where the size of the smallest certain answer object grows exponentially relative to the input.
These results suggest that while the "certain answers as objects" approach is theoretically elegant, its practical application in large-scale systems is limited by this inherent complexity.
Conclusion
The pursuit of more informative query results in incomplete databases leads to the "certain answers as objects" framework. Although mathematically sound and computable for common query classes, the exponential size of these objects remains a formidable barrier. Future research must focus on identifying tractable query fragments or developing approximation methods that balance informativeness with computational feasibility.
Summary updated