AI & Computingarticle2026-11-24

Extremal Fitting Problems for Conjunctive Queries

Open access0 citations

Abstract

The fitting problem for conjunctive queries (CQs) is the problem to construct a CQ that fits a given set of labeled data examples. When a fitting CQ exists, it is in general not unique. This leads us to propose natural refinements of the notion of a fitting CQ, such as most-general fitting CQ, most-specific fitting CQ, and unique fitting CQ. We give structural characterizations of these notions in terms of (suitable refinements of) homomorphism dualities, frontiers, and direct products, which enable the construction of the refined fitting CQs when they exist. We also pinpoint the complexity of the associated existence and verification problems, and determine the size of fitting CQs. We study the same problems for unions of CQs (UCQs).

// Source

View paper (DOI)Open access versionOpenAlexJournal of the ACMPublished 2026-11-24

Authors: Balder ten Cate, Víctor Dalmau, Maurice Funk, Carsten Lutz

Institutions: Leipzig University, University of Amsterdam, Universitat Pompeu Fabra