# When Can We Answer Queries Using Result-Bounded Data Interfaces?

**Authors:** Antoine Amarilli, Michael Benedikt

arXiv: 1706.07936 · 2019-08-28

## TL;DR

This paper investigates the problem of determining when queries can be answered using data interfaces that limit output size, providing theoretical tools and conditions for answerability under such constraints.

## Contribution

It introduces a reduction to query containment with constraints, schema simplification theorems, and a linearization method to analyze answerability over result-bounded data interfaces.

## Key findings

- Decidability results for answerability under various constraints
- Reduction of answerability to query containment problems
- Framework for checking query answerability with result bounds

## Abstract

We consider answering queries where the underlying data is available only over limited interfaces which provide lookup access to the tuples matching a given binding, but possibly restricting the number of output tuples returned. Interfaces imposing such "result bounds" are common in accessing data via the web. Given a query over a set of relations as well as some integrity constraints that relate the queried relations to the data sources, we examine the problem of deciding if the query is answerable over the interfaces; that is, whether there exists a plan that returns all answers to the query, assuming the source data satisfies the integrity constraints.   The first component of our analysis of answerability is a reduction to a query containment problem with constraints. The second component is a set of "schema simplification" theorems capturing limitations on how interfaces with result bounds can be useful to obtain complete answers to queries. These results also help to show decidability for the containment problem that captures answerability, for many classes of constraints. The final component in our analysis of answerability is a "linearization" method, showing that query containment with certain guarded dependencies -- including those that emerge from answerability problems -- can be reduced to query containment for a well-behaved class of linear dependencies. Putting these components together, we get a detailed picture of how to check answerability over result-bounded services.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1706.07936/full.md

## References

43 references — full list in the complete paper: https://tomesphere.com/paper/1706.07936/full.md

---
Source: https://tomesphere.com/paper/1706.07936