# Query Runs

## Endpoints

The `QueryRun` resource represents an execution of ad-hoc SQL against a dataset. Once created, Stripe processes the query. When the query has finished running, the object provides a reference to the results. A `QueryRun` and its results are retained for 90 days after the run completes. After that, Stripe deletes them and retrieving the `QueryRun` returns a `404` error.
