# Querying Databricks SQL Data

**Prerequisites**:

* [Databricks Unity Catalog integration configured with Immuta](/SaaS/configuration/integrations/databricks/databricks-unity-catalog/how-to-guides/connect-unity-catalog.md)
* [Databricks SQL tables registered as Immuta data sources](/SaaS/configuration/integrations/data-and-integrations/registering-metadata/register-data-sources/databricks-tutorial.md)

## Query data

1. Select **SQL** from the navigation menu in Databricks.
2. Click **Create → Query**.
3. Run your query as you normally would:

   ```sql
   SELECT
     concat(pickup_zip, '-', dropoff_zip) as route,
     AVG(fare_amount) as average_fare
   FROM
     `samples`.`nyctaxi`.`trips`
   GROUP BY
     1
   ORDER BY
     2 DESC
   LIMIT 1000
   ```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.immuta.com/SaaS/govern/secure-your-data/data-consumers/query-data/databricks-sql.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
