Truthful Data Procurement Priced by Certain Answers

A buyer who purchases relational records from many independent sellers faces two problems that current data-market mechanisms treat separately, when they treat them at all. The first is incentives. Sellers have private costs, so the buyer needs a procurement rule under which quoting your true cost is always your best strategy. The second is inconsistency. Sellers disagree: two sources give the same company key different headquarters, or the same user id different reputations. Database theory has a principled answer to the second problem, called certain answers: keep only the query answers that stay true however the disagreements are resolved. It is natural to price data by how many certain answers it adds. Doing so breaks the first problem. Buying a record that contradicts an existing one can delete certain answers, so the buyer's value is not monotone in what it buys. Truthful procurement rules rely on exactly that monotonicity.

This note proposes a way out. The buyer computes certain answers against the disagreements visible in the whole market, whether or not it buys the disagreeing records, and then credits only the answers that its purchased records actually support. We call this market-relative certain answers. It is monotone by construction, because buying more can only add support and never adds conflicts. It agrees with ordinary certain answers when everything is bought. For a known class of queries it can be computed in linear time by reduction to an existing consistent-query-answering engine. The research question is whether this one change turns certain-answer pricing into a practical, truthful, budget-limited mechanism. We also want to know what it costs relative to cheaper, cruder fixes.

Background and the gap

Consistent query answering evaluates a query over a database that violates its integrity constraints by quantifying over repairs, which are the maximal subsets that satisfy the constraints. An answer is certain, also called the AR semantics, if it holds in every repair (From Classical to Consistent Query Answering under Existential Rules). Under primary-key constraints, the conflicting tuples group into blocks, and a repair picks one tuple per block. Deciding certainty is coNP-complete in general (Exchange-Repairs). The problem becomes $\Pi_p^2$-complete once functional and inclusion dependencies interact (Computing Repairs Under Functional and Inclusion Dependencies via Argumentation). There is a tractable island. LinCQA identifies a class of acyclic, self-join-free queries, the Pair-Pruning Join Trees (PPJT), whose certain answers can be computed in linear time by compiled SQL. It reports that on a 400GB StackOverflow dump it finishes in seconds or minutes while solver-based systems time out. That island supplies our value computation.

Budget-feasible procurement sits on the other side. Here a buyer with a fixed budget buys from sellers with private costs, and no single seller can profit by misreporting its cost. From Welfare to Utility gives a prior-free mechanism that is dominant-strategy truthful and captures a $1/(2+\sqrt{2})\approx 0.29$ fraction of optimal welfare. It works by comparing the best single seller against a greedy set ordered by value per cost, and it assumes item values are given and additive. Prior-free Data Acquisition for Accurate Statistical Estimation handles strategic sellers whose costs correlate with their data, but its data are unstructured samples. A Theory of Data Acquisition and Pricing at Scale plays the constraining role here. It shows that any non-monotone selection rule lets sellers profit from overstating costs. It restores monotonicity with strongly convex regularization, a tool that exists for continuous least-squares objectives and has no analogue for discrete logical conflicts.

None of these works connects the two sides. The soft-dependency repair work of Database Repairing with Soft Functional Dependencies comes closest to pricing repairs, finding minimum-cost subsets under weighted functional dependencies. There, however, costs are public constants, not private reports. The gap this note targets is specific. It is a monotone, efficiently computable certain-answer value that a truthful budget-feasible mechanism can use directly.

Core Claim

Let $P$ be the market pool: the buyer's own data $D_0$ together with every seller's offered tuples, held by a trusted broker that computes values without releasing data. This is the same trust model the attribution-oracle setting of Ilyas et al. assumes. For a purchased set of sellers $S$, write $D_S = D_0 \cup \bigcup_{i \in S} T_i$. Define

$$V(S) = \big|\{\, q : q \in Q(R \cap D_S) \text{ for every repair } R \text{ of } P \,\}\big|,$$

where $Q$ is the buyer's query and $q$ ranges over its answers. In words, an answer counts only if, in every way of resolving the market's disputes, the records the buyer paid for still produce it.

The ordinary alternative, $|\mathrm{Cert}(Q, D_S)|$, behaves badly in two ways. It drops answers when a purchased tuple conflicts with an existing one. It also rewards the buyer for not buying the conflicting tuple, so disputes the broker can see are counted as certainty. $V$ avoids both. For each fixed repair $R$, enlarging $S$ enlarges $R \cap D_S$, and conjunctive queries are monotone. So $V$ is monotone in $S$, and $V(\text{all sellers}) = |\mathrm{Cert}(Q,P)|$.

We make two claims that the project would prove.

The first is a complexity transfer. Under primary keys, $V(S)$ reduces to ordinary certain-answer computation on a rewritten instance. Each unpurchased tuple keeps its key but receives fresh, never-matching constants in its other positions, and answers containing fresh constants are filtered out. The unpurchased tuple therefore still competes in its block but can never supply a witness. Because the rewriting preserves the query, every PPJT query gets an exact linear-time value oracle through LinCQA. Outside PPJT, computing the value inherits coNP-hardness. This draws the line the research file's Gap 3 asks for: which query and constraint classes allow a truthful procurement mechanism with an exact, polynomial-time value computation.

The second is a mechanism claim. With a monotone $V$ and an exact oracle, one can run a prior-free, budget-feasible mechanism with threshold payments. Threshold payments pay each winning seller the highest cost it could have quoted and still won. The mechanism need not regularize, and it avoids the compute–truthfulness–utility trilemma of Ilyas et al., because the value itself is exact rather than approximated.

What we do not claim matters as much. $V$ is monotone but, because of joins, not submodular. Buying a parent record and its matching child together is worth more than the sum of buying each alone. Constant approximation guarantees of the Eden et al. kind therefore do not transfer automatically.

Research Program

The first strand is theory about $V$. We will prove monotonicity and the reduction to ordinary consistent query answering for primary keys. We will then identify query shapes for which $V$ is submodular, meaning each extra purchase adds less the more has already been bought. Single-atom queries with projection behave like coverage functions and should qualify. Star joins where only the center relation is sold are a candidate. For these shapes we expect a truthful greedy mechanism with a constant approximation ratio, comparable in form to Eden et al.'s 0.29.

For general PPJT queries we take a different route. We treat join-connected seller groups as bundles, order sellers by standalone value per cost, and prove only truthfulness and budget feasibility. We then measure the approximation ratio empirically.

A secondary question concerns sellers who manipulate what data they offer rather than what they charge. A seller could offer a deliberate "spoiler" tuple that conflicts with a rival's, erasing the rival's value under market-relative semantics. We will bound how much value one spoiler can destroy and test whether requiring a conflicting seller to be purchased, or to post a deposit, removes the incentive.

The second strand brings in the iterative dependency-enforcement direction as the application regime. Here sellers act as sources in a data-exchange setting and deliver data into the buyer's schema through mappings enforced by the chase, the procedure that repeatedly fires schema rules until no rule is violated. Exchange-Repairs already defines repairs at the source level and, for global-as-view mappings, rewrites target certainty into source-level consistent query answering. This fits the market-relative definition naturally, since the pool is the source instance. We will check that monotonicity survives under that rewriting.

Inclusion dependencies add a further twist: under them, buying a parent record can rescue a child record. Here we will use the argumentation encoding of Mahmood et al. only as an exact oracle for small instances, because that problem is $\Pi_p^2$-hard. The file offers no scalable engine for it.

Baselines

The naive reference point is to plug the ordinary union value $|\mathrm{Cert}(Q, D_S)|$ into the Eden et al. greedy with threshold payments, keeping the same budget and costs. This is the "obvious" combination. It is the right foil because it isolates what the market-relative definition changes. We expect it to be computable with LinCQA just as ours is, so any difference comes from monotonicity and not from compute. It is beaten if our mechanism shows zero profitable misreports while the naive one shows a nonzero rate, at equal or higher achieved value.

The strongest existing method is the Eden et al. prior-free welfare mechanism (From Welfare to Utility) run with additive standalone values, each seller valued in isolation. This is exactly the setting where its reported $1/(2+\sqrt{2})\approx 0.29$ worst-case welfare guarantee applies. It is the most credible competitor because it is truthful, runs in $O(n \log n)$, and ignores the interactions we claim matter. We run it on identical seller partitions, costs, and budgets. We score its purchases with the same $V$, so both mechanisms are judged by one yardstick. Beating it means a higher ratio of $V$ to the offline optimum, where the optimum comes from an integer program on small instances, across a majority of queries and budget levels.

The cleaning baseline, "clean-then-buy", resolves each block to one tuple before procurement, either by keeping the cheapest version or by a fixed heuristic, and then runs the Eden mechanism.

The key ablation is market-relative IAR. IAR, the intersection of all repairs, is a cautious semantics that keeps only tuples involved in no conflict at all. The ablation defines $V_{\text{IAR}}(S) = |Q(\mathrm{IAR}(P) \cap D_S)|$. This value is also monotone and is much cheaper, since IAR is first-order rewritable (Complexity of Approximate Query Answering under Inconsistency in Datalog+/-). A variant computes IAR only after projecting relations onto the key and the attributes the query uses. This ablation isolates whether exact certain answers, rather than monotonicity alone, justify the extra computation.

Why not just…?

Why not just clean the data first and then buy? Cleaning must decide which of two disagreeing records is right. As Uniform Dependency Language for Improving Data Quality notes, dependency rules can detect a conflict but cannot locate the wrong value without master data. The result can also depend on the order in which fixes are applied. In a market, "keep the cheapest version" is worse still: price becomes the arbiter of truth, and low-cost wrong data is rewarded. Our experiments measure this directly by injecting known-wrong versions of records at below-market cost and counting how many wrong answers each method certifies.

Why not just use market-relative IAR, which is monotone and cheaper? This is the real threat. IAR discards every tuple involved in any conflict. It therefore loses answers that survive all repairs, for example when sellers disagree only on an attribute the query ignores, or when every alternative in a block still joins to produce the answer. Projecting onto query-relevant attributes removes the first loss but not the second. If the measured value gap between $V$ and the projected $V_{\text{IAR}}$ is small on StackOverflow and TPC-H, we will recommend the IAR variant and treat exact certain answers as unnecessary. The experiments are designed so that this outcome is reportable.

Why not just keep the union-certain value and restore truthfulness by regularization, as Ilyas et al. do? Their fix relies on strong convexity of a continuous least-squares objective. A count of query answers over discrete purchases has no convex structure to regularize, and any smoothing would reintroduce an approximate value, which is exactly what their trilemma says breaks truthfulness. The naive baseline above tests whether non-monotonicity actually causes profitable misreports on realistic data. If it rarely does, the case for our definition weakens to a conceptual one, and we would say so.

Proposed Experiments

We use the three workloads from LinCQA: the StackOverflow dump with its primary-key violations, 14 TPC-H queries with injected key conflicts, and LinCQA's synthetic generator, which varies inconsistency rate and relation size. We simulate sellers by splitting each relation into sources. Some sources overlap as exact duplicates, some as conflicting versions, and some are disjoint. Seller costs are drawn independently of data and, following the motivation of Chen and Zheng, also correlated with how many answers a seller supports.

We report four metrics:

  • achieved $V$ as a fraction of the offline optimum, computed by integer programming on instances small enough to solve;
  • the rate of profitable unilateral cost misreports, found by searching over deviations for each seller;
  • budget violations;
  • value-computation runtime against pool size.

For context, no reported result was found on Lacuna for any procurement mechanism evaluated on these relational benchmarks. LinCQA reports linear scaling but no per-query runtimes, and the 0.29 figure of Eden et al. is a worst-case theoretical ratio for additive values, not an empirical number.

Three checks decide the proposal. First, the union-value baseline must exhibit profitable misreports on StackOverflow; otherwise the monotonicity problem is academic. Second, market-relative AR must beat projected market-relative IAR in value by a margin that justifies its cost; otherwise IAR wins and we say so. Third, the fresh-constant reduction must let LinCQA compute $V$ in time growing linearly with pool size on PPJT queries, which would confirm the complexity transfer empirically.

A fourth, smaller experiment tests spoiler tuples on the synthetic generator. It measures how much rival value one strategic conflicting offer can erase with and without the deposit rule.