[Yandex Cloud documentation](../../../index.md) > [Yandex MetaData Hub](../../index.md) > Data Catalog > Step-by-step guides > Operations with data > Queries against datasets with Yandex WebSQL

# Queries against datasets with Yandex WebSQL


{% note info %}

This feature is in the [Preview](../../../overview/concepts/launch-stages.md) stage.

{% endnote %}


You can use [Yandex WebSQL](../../../websql/index.md) to send SQL queries to databases in clusters that are data sources for Data Catalog.

WebSQL is a Yandex Cloud service that allows you to connect to managed database clusters and work with their databases, tables, schemas, and queries. This service runs in the browser, requires no extra login, and simplifies work by providing hints for SQL commands.

[Learn more](../../../websql/operations/index.md) about working with WebSQL.

To run an SQL query:

{% list tabs group=instructions %}

- Management console {#console}

    1. In the [management console](https://console.yandex.cloud), select the [resource folder](../../../resource-manager/concepts/resources-hierarchy.md#folder) you created the metadata catalog in.
    1. [Navigate](../../../console/operations/select-service.md#select-service) to **Yandex MetaData Hub**.
    1. In the left-hand panel, select ![image](../../../_assets/console-icons/folder-magnifier.svg) **Data Catalog**.
    1. In the list that opens, select the metadata catalog.
    1. In the left-hand panel, select ![image](../../../_assets/console-icons/database-magnifier.svg) **Metadata search**.
    1. Navigate to a metadata object with the **Dataset** type by doing one of the following:

        * Click the name of the object with the **Dataset** type.
        * Click the name of an object with a type other than **Dataset**. Navigate across child objects using the **Child** tab until you find an object with the **Dataset** type. Click the object’s name.

    1. In the **Data** field, click the **Open in WebSQL** link.
    1. Select a connection to the source cluster database. This will take you to WebSQL.
    1. In the top-right panel, enter the SQL query and click **Run**.

        Here are some examples of what you can do with SQL commands:

        * [Run multi-queries](../../../websql/operations/query-executor.md#multiple-queries)
        * [Export query results](../../../websql/operations/query-executor.md#export-results)
        * [Use an AI assistant to analyze and optimize queries](../../../websql/operations/ai-assistant.md)
        * [Save a query as a template and share it with other users](../../../websql/operations/templates.md#save-query)
        * [Use historical queries](../../../websql/operations/history.md)

{% endlist %}

{% note info %}

In case the data source is a Yandex Managed Service for PostgreSQL cluster, you cannot use SQL commands for actions requiring superuser permissions.

{% endnote %}