Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Query
    • Overview
    • Selecting data from all columns
    • Selecting data from specific columns
    • Sorting and filtering
    • Aggregating data
    • Additional selection criteria
    • Working with JSON
    • Running a streaming data query
  • Access management
  • Pricing policy
  • Integration
  • Audit Trails events
  • FAQ

In this article:

  • Example of analytical queries
  • Example of streaming queries
  1. Working with YQL
  2. Overview

Using Yandex Query Language syntax in Yandex Query

Written by
Yandex Cloud
Improved by
Max Z.
Updated at March 6, 2025
  • Example of analytical queries
  • Example of streaming queries

In this tutorial, you will learn how to use Yandex Query Language syntax and perform operations with data in Yandex Query using an example of analytical and streaming queries.

All sample queries are run based on a ready-made dataset with New York City taxi trips for 2019-2021.

Note

Yandex Cloud provides the New York City taxi trips dataset as is. Yandex Cloud makes no representations, express or implied, warranties, or conditions pertaining to your use of the specified dataset. To the extent allowed by your local laws, Yandex Cloud shall not be liable for any loss or damage, including direct, consequential, special, indirect, incidental, or exemplary, resulting from your use of the dataset.

NYC Taxi and Limousine Commission (TLC):

The data was collected and provided to the NYC Taxi and Limousine Commission (TLC) by technology providers authorized under the Taxicab & Livery Passenger Enhancement Programs (TPEP/LPEP). The taxi trip data is not generated by the TLC, and the TLC makes no representations whatsoever about the accuracy of this data.

Take a look at the dataset source and its use policy.

Example of analytical queriesExample of analytical queries

To create an analytical query and start the training:

  1. In the management console, select the folder where you want to create a connection.
  2. In the list of services, select Yandex Query.
  3. In the left-hand panel, select Tutorial.
  4. Click Create connection. In the Create connection section, all parameter fields are pre-filled. Enter a description (optional) and click Create. This will take you to the data binding creation screen.
  5. Enter the data binding description (optional) and click Create. Appropriate training resources will be created.

In the list on the left panel, choose a training section:

  1. Select all columns.
  2. Select certain fields.
  3. Sorting and filtering.
  4. Data aggregation.
  5. Aggregation additional conditions.
  6. JSON.

Example of streaming queriesExample of streaming queries

To create a streaming query and start the training:

  1. In the management console, select the folder where you want to create a connection.
  2. In the list of services, select Yandex Query.
  3. In the left-hand panel, select Tutorial.
  4. Select Streaming.
  5. Click Create connection. In the Create connection section, some parameter fields are pre-filled.
  6. Select or create a database.
  7. Select or create a service account.
  8. Click Create. This will take you to the data binding creation screen.
  9. Select or create a stream.
  10. Enter the data binding description (optional) and click Create. Appropriate training resources will be created.

In the list on the left panel, choose a training section:

  1. Querying real-time data.

See alsoSee also

YQL syntax

Was the article helpful?

Previous
Terraform
Next
Selecting data from all columns
© 2025 Direct Cursus Technology L.L.C.