> ## Documentation Index
> Fetch the complete documentation index at: https://docs.equals.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Query version history

> Restore past versions of queries and their output data

With query version history, your workbook will automatically keep a copy of every query and the resulting data that was returned from that query. From the version history panel, you can easily restore past versions of a query and the associated data.

Currently, query version history is not supported for [views](https://docs.equals.com/docs/views-1).

<img src="https://mintcdn.com/equals/PJ0fZGdeJS9vIpsl/images/docs/f7d1d37fe5e789b5ef3e8ccf4f1a07b782aa7ba22c10ea2dfbd8007892786094-workspace_12.png?fit=max&auto=format&n=PJ0fZGdeJS9vIpsl&q=85&s=20b2f328cb70adef4173722c82bff06f" alt="" width="2400" height="1350" data-path="images/docs/f7d1d37fe5e789b5ef3e8ccf4f1a07b782aa7ba22c10ea2dfbd8007892786094-workspace_12.png" />

To restore a previous query run:

1. Navigate your connected sheet.
2. Click on the `History` button on the top-left side of the editor.
3. Select a previous version of the query to restore.
4. Select a restore option from the drop-down menu on the `Restore` button. If you click *Restore query and data*, that version of the query and the associated output data will be returned. If you click *Restore query only*, a query run will not complete and only the query syntax will be restored.

***

[Building queries](/docs/building-queries)

[Joins](/docs/joins)
