# Query(Beta)

{% hint style="warning" %}
This feature is in beta. Specifications may change without notice.
{% endhint %}

By using "Queries", you can save general-purpose queries that can be used across multiple notebooks on a per-connection basis.

## How to Use

* Creating "Queries":
  * Creating from the "Queries" screen
    * Create new from "Create Query", select a connection, and "Save".
  * Creating from a notebook
    * Execute "Save SQL" from the menu at the top right of the SQL block to save the content of the SQL block to "Queries".
      * References to other SQL blocks are saved in their expanded state.
      * Parameters are saved with their values replaced.
* Uses of "Queries"
  * You can share queries across notebooks.

## Notes

* Parameter embedding and references to other "Queries" are not supported.


---

# 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://docs.codatum.com/data-exploration/query.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.
