> For the complete documentation index, see [llms.txt](https://docs.countercyclical.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.countercyclical.io/relations/components/vantage-queries.md). Agents can also search and read this documentation through its [MCP server](https://docs.countercyclical.io/~gitbook/mcp).

# Vantage Queries

Query workspace data and turn the results into a reusable report component.

Vantage is a report component for running read-only queries against the data available to your workspace. Open a report and choose **Vantage** under **Data Visualizations**. The Vantage editor combines the query, result preview, and settings.

### Query and Results

Use **Run** to execute the current query and inspect its output. The result area can display a table or chart and shows the result count and run time. Use **Save** to retain your component configuration.

The export menu offers available formats including CSV, Excel, and JSON. Exported data follows the query run for that export.

### Editor Settings

| **Tab**     | **What It Shows**                                               |
| ----------- | --------------------------------------------------------------- |
| Preferences | Editor and result settings, including validation while editing. |
| Templates   | Reusable query templates you can inspect or use.                |
| Metadata    | Available metadata and the Data Blocks saved in the component.  |
| Queries     | Available query references and workspace variables.             |

### Query Access and Limits

{% hint style="info" %}
Vantage uses the Relations feature. It can read the sources and fields your workspace makes available. Queries use a read-only syntax and require a row limit. See [CQL](https://docs.countercyclical.io/relations/components/vantage-queries/cql) for the query rules.
{% endhint %}

Use [Data Blocks](https://docs.countercyclical.io/relations/components/vantage-queries/data-blocks) when you need to reference the result of a prior run inside the same Vantage component.

### Related Pages

{% content-ref url="/pages/0xvOQOgiI0hROKrC8ZzU" %}
[Reports](https://docs.countercyclical.io/relations/reports.md)
{% endcontent-ref %}

{% content-ref url="/pages/3e3hFpBVFZGl0mUtPg9S" %}
[CQL](https://docs.countercyclical.io/relations/components/vantage-queries/cql.md)
{% endcontent-ref %}

{% content-ref url="/pages/juHqfzbZ6gsMkHL5fWAd" %}
[Data Blocks](https://docs.countercyclical.io/relations/components/vantage-queries/data-blocks.md)
{% endcontent-ref %}
