When Does Naïve Evaluation Work for Datalog?
摘要
Query answering over incomplete data is typically predicated on the notion of certain answers, comprising the set of tuples that appear in the query result across all possible complete databases. Computing certain answers is often computationally expensive, with lower bounds such as coNP-hardness or even undecidability in many cases. One tractable approach is naïve evaluation, which treats nulls as fresh constants and applies standard query evaluation. While naïve evaluation is known to compute certain answers for positive Datalog, its behavior for more expressive extensions of Datalog has remained less understood. This paper identifies syntactic extensions of Datalog for which naïve evaluation computes certain answers.