HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/awscli/examples/athena/list-query-executions.rst
**To list the query IDs of the queries in a specified workgroup**

The following ``list-query-executions`` example lists a maximum of ten of the query IDs in the ``AthenaAdmin`` workgroup. ::

    aws athena list-query-executions \
        --work-group AthenaAdmin \
        --max-items 10

Output::

    {
        "QueryExecutionIds": [
            "a1b2c3d4-5678-90ab-cdef-EXAMPLE11110",
            "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
            "a1b2c3d4-5678-90ab-cdef-EXAMPLE33333",
            "a1b2c3d4-5678-90ab-cdef-EXAMPLE11114",
            "a1b2c3d4-5678-90ab-cdef-EXAMPLE11115",
            "a1b2c3d4-5678-90ab-cdef-EXAMPLE11116",
            "a1b2c3d4-5678-90ab-cdef-EXAMPLE11117",
            "a1b2c3d4-5678-90ab-cdef-EXAMPLE11118",
            "a1b2c3d4-5678-90ab-cdef-EXAMPLE11119"
        ],
        "NextToken": "eyJOZXh0VG9rZW4iOiBudWxsLCAiYm90b190cnVuY2F0ZV9hbW91bnQiOiAxMH0="
    }

For more information, see `Working with Query Results, Output Files, and Query History <https://docs.aws.amazon.com/athena/latest/ug/querying.html>`__ in the *Amazon Athena User Guide*.