[Yandex Cloud documentation](../../../../index.md) > [Yandex Managed Service for YDB](../../../index.md) > Amazon DynamoDB-compatible Document API > Tools > [Working with the AWS CLI](index.md) > Data selection

# Data selection

To select data from the `series` table by the `series_id` key:

{% list tabs group=instructions %}

- AWS CLI {#cli}

    Run this command, replacing `https://your-database-endpoint` with the [previously prepared Document API endpoint](index.md#before-you-begin) of your database:

    {% note warning %}

    To work with the AWS CLI on Windows, we recommend using the [WSL](https://docs.microsoft.com/en-us/windows/wsl/).

    {% endnote %}

    ```bash
    endpoint="https://your-database-endpoint"
    aws dynamodb query \
        --table-name series \
        --key-condition-expression "series_id = :name" \
        --expression-attribute-values '{":name":{"N":"2"}}' \
        --endpoint $endpoint
    ```

   Result:

    ```text
    {
        "Items": [
            {
                "series_id": {
                    "N": ".2e1"
                },
                "title": {
                    "S": "Silicon Valley"
                },
                "release_date": {
                    "S": "2014-04-06"
                },
                "series_info": {
                    "S": "Silicon Valley is an American comedy television series created by Mike Judge, John Altschuler and Dave Krinsky. The series focuses on five young men who founded a startup company in Silicon Valley."
                }
            }
        ],
        "Count": 1,
        "ScannedCount": 1,
        "ConsumedCapacity": null
    }
    ```

{% endlist %}