Set-semantics versus bag-semantics testability

Determine whether the lower bounds established for bag semantics can be extended to set semantics, and whether there exist monadic Datalog queries that are constant query testable under set semantics but not under bag semantics.

Background

The paper’s lower-bound arguments for monadic Datalog property testing rely on bag databases, particularly on multiplicities used in reductions from hard conjunctive queries. The authors note that some technical structural results hold independently of higher multiplicities, but the property-testing lower bounds do not currently transfer to set semantics. They therefore ask whether the two semantics yield different testability behavior.

References

It would also be interesting to understand how bag semantics and set semantics relate to one another. Can we improve our lower bounds from bag semantics to set semantics? Are there MDLog queries that are constant query testable under set semantics, but not under bag semantics?

Property Testing for Recursive Query Languages  (2609.03908 - Adler et al., 3 Sep 2026) in Conclusion, final paragraph