> For the complete documentation index, see [llms.txt](https://docs.upriverdata.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.upriverdata.com/product-usage/agent/queries-and-charts.md).

# Queries and Charts

Review every warehouse query the agent ran, along with its results and charts.

The Queries tab of the [helper drawer](/product-usage/agent.md#the-helper-drawer) lists every warehouse query the agent ran while working on the current task — so you always know exactly how it arrived at an answer, and can dig into the numbers yourself.

<figure><img src="https://875415170-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLE0zsJmUpeLjYw085cnO%2Fuploads%2Fgit-blob-291480424a7565f6bc40b3458a7c363e408f7e29%2Fimage%20(agent-queries).png?alt=media" alt=""><figcaption><p>A query the agent ran, rendered as a chart</p></figcaption></figure>

## Query entries

Each entry shows:

* A short, agent-generated description of what the query was for.
* A subheader such as "Query on \<warehouse> · \<N> rows".
* The SQL text, syntax highlighted and read-only.
* If the query failed, the error message returned by the warehouse.

## Viewing results

If a query returned results, a results header appears above them with:

* **Export CSV** — download the full result set.
* A **chart / table toggle** — only shown when the results can be charted. Switching to chart view renders the result as a bar, line, pie or other chart (with a title if the agent set one); switching back shows the raw results as a data table.
* **Open in SQL editor** (chat-bubble icon) — loads the exact query, along with its last result, into a new [Query Editor](/product-usage/agent/query-editor.md) tab so you can re-run or tweak it yourself.

If no task or query is selected yet, the tab shows a prompt to select one; if the agent hasn't run any warehouse queries in the current task, it shows "No warehouse queries in this task yet."
