Score: 2

Efficient Query Repair for Aggregate Constraints

Published: November 2, 2025 | arXiv ID: 2511.00826v1

By: Shatha Algarni , Boris Glavic , Seokki Lee and more

Potential Business Impact:

Fixes search results to meet special rules.

Business Areas:
Semantic Search Internet Services

In many real-world scenarios, query results must satisfy domain-specific constraints. For instance, a minimum percentage of interview candidates selected based on their qualifications should be female. These requirements can be expressed as constraints over an arithmetic combination of aggregates evaluated on the result of the query. In this work, we study how to repair a query to fulfill such constraints by modifying the filter predicates of the query. We introduce a novel query repair technique that leverages bounds on sets of candidate solutions and interval arithmetic to efficiently prune the search space. We demonstrate experimentally, that our technique significantly outperforms baselines that consider a single candidate at a time.

Country of Origin
πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ United States, United Kingdom

Repos / Data Links

Page Count
19 pages

Category
Computer Science:
Databases