> For the complete documentation index, see [llms.txt](https://v2.dataos.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v2.dataos.info/references/resources/depot/consume/querying.md).

# Querying (Minerva)

Query Depot-connected data interactively through Minerva's Trino-compatible SQL endpoint.

[Minerva](https://v2.dataos.info/references/resources/minerva.md) exposes Depot data through a Trino-compatible endpoint. Each configured Depot is available as a catalog for querying.

## Query Depot data with Minerva

Add a Depot to a Minerva resource to make its datasets available through SQL. Use the Depot name as the Trino catalog, then qualify datasets as `catalog.schema.table`.

Minerva queries data in the connected source system. It does not copy data before running the query. Your runtime identity needs permission to use both the Minerva resource and the Depot.

### Prerequisites

Before querying a Depot through Minerva, the following should be ready:

* The Depot exists, and its source credentials are valid.
* Data Source connected via Depot should support Trino.
* A Minerva domain is available in the instance.
* A compute is available for the Minerva workload.
* The runtime user has access to the Depot.

### Example Minerva Resource

The following example exposes the S3, GCS, and ABFSS Depots through Minerva:

```yaml
name: minerva026
version: v1alpha
type: minerva
tags:
  - minerva
  - dataos:type:resource
  - dataos:type:tenant-resource
spec:
  compute: universe-compute
  depots:
    - address: "dataos://mys3lh26depot?purpose=rw"
    - address: "dataos://mygcslh26depot?purpose=rw"
    - address: "dataos://myabfsslh26depot?purpose=rw"
  runAsUser: iamgroottmdcio
  coordinatorEnvs:
    VERBOSE_CONFIG: "true"
  workerEnvs:
    VERBOSE_CONFIG: "true"
```

### Query the data

Once Minerva Resource is ready, you can query using the Workbench interface.

For full Minerva configuration details, see [Minerva](https://v2.dataos.info/references/resources/minerva.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://v2.dataos.info/references/resources/depot/consume/querying.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
