> For the complete documentation index, see [llms.txt](https://readme.directual.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://readme.directual.com/data/directual-query-language-dql.md).

# Directual Query Language (DQL)

Data structure can contain millions of objects. You can use Directual Query Language (DQL) for searching and filtering them.&#x20;

![Example of applying DQL](/files/-M5HZO6ac2g_viBICsY-)

Here are some examples of DQL-requests:

Request `42` is a synonym to `id = "42"` — it finds the object with **ID** = *42.*

`(title like "sun" AND year < 1950) OR is_good = "true"`— finds objects of two groups. First: with **titles** similar to *The Sun also rises* or *Under the Blood-Red Sun,* and with **year** less than 1950. Plus second: with **is\_good** equals *true*.

`email like "@directual.com" AND name != ""`— finds objects with **email** field similar to *<team@directual.com>*, or *<hello@directual.com>*, and with not empty **name** field.

`birth_date <= "2000-04-09T00:00:00"`— finds objects with **birth\_date** before *9th April 2000.*

{% hint style="info" %}
Note that all values for comparison must be enclosed in quotes. Numbers can be compared with or without quotes.
{% endhint %}

{% embed url="<https://youtu.be/5DuE2t7jzEM>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://readme.directual.com/data/directual-query-language-dql.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.
