<commit_before>
## Queries

This Section includes several query examples that you can execute from the [Studio](../../../studio/README.md)'s _Browse Tab_, or from its _Graph Editor_. You may also execute these queries directly from the [Console]((../../../console/README.md)), or your application through an [API or Driver](../../../apis-and-drivers/README.md).  

{% include "../../../general/include-demodb-version-warning.md" %}

The following table can help you navigate through all examples:

|Category                    | Question                      | Link
|----------------------------|-------------------------------|--------------------------------------------------------------|
| **Profiles**               | {{book.demodb_query_8_text}}  | [Link](DemoDB-Queries-Profiles.md#example-1)                 |
|                            | {{book.demodb_query_12_text}} | [Link](DemoDB-Queries-Profiles.md#example-2)                 |
| **Friendship**             | {{book.demodb_query_1_text}}  | [Link](DemoDB-Queries-Friendship.md#example-1)               |
|                            | {{book.demodb_query_2_text}}  | [Link](DemoDB-Queries-Friendship.md#example-2)               |
|                            | {{book.demodb_query_3_text}}  | [Link](DemoDB-Queries-Friendship.md#example-3)               |
|                            | {{book.demodb_query_4_text}}  | [Link](DemoDB-Queries-Friendship.md#example-4)               |
|                            | {{book.demodb_query_5_text}}  | [Link](DemoDB-Queries-Friendship.md#example-5)               |
|                            | {{book.demodb_query_6_text}}  | [Link](DemoDB-Queries-Friendship.md#example-6)               |
|                            | {{book.demodb_query_7_text}}  | [Link](DemoDB-Queries-Friendship.md#example-7)               |
| **Locations**              | {{book.demodb_query_15_text}} | [Link](DemoDB-Queries-Locations.md#example-1)                |
|                            | {{book.demodb_query_16_text}} | [Link](DemoDB-Queries-Locations.md#example-2)                |
|                            | {{book.demodb_query_25_text}} | [Link](DemoDB-Queries-Locations.md#example-3)                |
|                            | {{book.demodb_query_26_text}} | [Link](DemoDB-Queries-Locations.md#example-4)                |
|                            | {{book.demodb_query_18_text}} | [Link](DemoDB-Queries-Locations.md#example-5)                |
|                            | {{book.demodb_query_35_text}} | [Link](DemoDB-Queries-Locations.md#example-6)                |
| **Polymorphism**           | {{book.demodb_query_17_text}} | [Link](DemoDB-Queries-Polymorphism.md#example-1)             |
| **Reviews**                |                               |                                                              |
| **Services**               | {{book.demodb_query_37_text}} | [Link](DemoDB-Queries-Reviews.md#example-2)                  |
|                            | {{book.demodb_query_40_text}} | [Link](DemoDB-Queries-Locations.md#example-5)                |
| **Customers**              | {{book.demodb_query_24_text}} | [Link](DemoDB-Queries-Customers.md#example-1)                |
|                            | {{book.demodb_query_25_text}} | [Link](DemoDB-Queries-Customers.md#example-1)                |
|                            | {{book.demodb_query_26_text}} | [Link](DemoDB-Queries-Customers.md#example-2)                |
|                            | {{book.demodb_query_27_text}} | [Link](DemoDB-Queries-Customers.md#example-3)                |
|                            | {{book.demodb_query_28_text}} | [Link](DemoDB-Queries-Customers.md#example-4)                |
|                            | {{book.demodb_query_29_text}} | [Link](DemoDB-Queries-Customers.md#example-5)                |
|                            | {{book.demodb_query_30_text}} | [Link](DemoDB-Queries-Customers.md#example-6)                |
|                            | {{book.demodb_query_31_text}} | [Link](DemoDB-Queries-Customers.md#example-7)                |
|                            | {{book.demodb_query_32_text}} | [Link](DemoDB-Queries-Customers.md#example-8)                |
|                            | {{book.demodb_query_33_text}} | [Link](DemoDB-Queries-Customers.md#example-9)                |
|                            | {{book.demodb_query_34_text}} | [Link](DemoDB-Queries-Customers.md#example-10)               |
| **Orders**                 | {{book.demodb_query_9_text}}  | [Link](DemoDB-Queries-Orders.md#example-1)                   |
|                            | {{book.demodb_query_11_text}} | [Link](DemoDB-Queries-Orders.md#example-2)                   |
| **Recommendations**        | {{book.demodb_query_22_text}} | [Link](DemoDB-Queries-Recommendations.md#example-1)          |
|                            | {{book.demodb_query_23_text}} | [Link](DemoDB-Queries-Recommendations.md#example-2)          |
| **Business Opportunities** | {{book.demodb_query_7_text}}  | [Link](DemoDB-Queries-Business-Opportunities.md#example-1)   |
|                            | {{book.demodb_query_14_text}} | [Link](DemoDB-Queries-Business-Opportunities.md#example-2)   |
| **Shortest Paths**         | {{book.demodb_query_21_text}} | [Link](DemoDB-Queries-Shortest-Paths.md#example-1)           |
| **Traverses**              | {{book.demodb_query_19_text}} | [Link](DemoDB-Queries-Traverses.md#example-1)                |
|                            | {{book.demodb_query_20_text}} | [Link](DemoDB-Queries-Traverses.md#example-2)                |







<commit_msg>demodb<commit_after>
## Queries

This Section includes several query examples that you can execute from the [Studio](../../../studio/README.md)'s _Browse Tab_, or from its _Graph Editor_. You may also execute these queries directly from the [Console](../../../console/README.md), or your application through an [API or Driver](../../../apis-and-drivers/README.md).  

{% include "../../../general/include-demodb-version-warning.md" %}

The following table can help you navigate through all examples:

|Category                    | Question                      | Link
|----------------------------|-------------------------------|--------------------------------------------------------------|
| **Profiles**               | {{book.demodb_query_8_text}}  | [Link](DemoDB-Queries-Profiles.md#example-1)                 |
|                            | {{book.demodb_query_12_text}} | [Link](DemoDB-Queries-Profiles.md#example-2)                 |
| **Friendship**             | {{book.demodb_query_1_text}}  | [Link](DemoDB-Queries-Friendship.md#example-1)               |
|                            | {{book.demodb_query_2_text}}  | [Link](DemoDB-Queries-Friendship.md#example-2)               |
|                            | {{book.demodb_query_3_text}}  | [Link](DemoDB-Queries-Friendship.md#example-3)               |
|                            | {{book.demodb_query_4_text}}  | [Link](DemoDB-Queries-Friendship.md#example-4)               |
|                            | {{book.demodb_query_5_text}}  | [Link](DemoDB-Queries-Friendship.md#example-5)               |
|                            | {{book.demodb_query_6_text}}  | [Link](DemoDB-Queries-Friendship.md#example-6)               |
|                            | {{book.demodb_query_7_text}}  | [Link](DemoDB-Queries-Friendship.md#example-7)               |
| **Locations**              | {{book.demodb_query_15_text}} | [Link](DemoDB-Queries-Locations.md#example-1)                |
|                            | {{book.demodb_query_16_text}} | [Link](DemoDB-Queries-Locations.md#example-2)                |
|                            | {{book.demodb_query_25_text}} | [Link](DemoDB-Queries-Locations.md#example-3)                |
|                            | {{book.demodb_query_26_text}} | [Link](DemoDB-Queries-Locations.md#example-4)                |
|                            | {{book.demodb_query_18_text}} | [Link](DemoDB-Queries-Locations.md#example-5)                |
|                            | {{book.demodb_query_35_text}} | [Link](DemoDB-Queries-Locations.md#example-6)                |
| **Polymorphism**           | {{book.demodb_query_17_text}} | [Link](DemoDB-Queries-Polymorphism.md#example-1)             |
| **Reviews**                |                               |                                                              |
| **Services**               | {{book.demodb_query_37_text}} | [Link](DemoDB-Queries-Reviews.md#example-2)                  |
|                            | {{book.demodb_query_40_text}} | [Link](DemoDB-Queries-Locations.md#example-5)                |
| **Customers**              | {{book.demodb_query_24_text}} | [Link](DemoDB-Queries-Customers.md#example-1)                |
|                            | {{book.demodb_query_25_text}} | [Link](DemoDB-Queries-Customers.md#example-1)                |
|                            | {{book.demodb_query_26_text}} | [Link](DemoDB-Queries-Customers.md#example-2)                |
|                            | {{book.demodb_query_27_text}} | [Link](DemoDB-Queries-Customers.md#example-3)                |
|                            | {{book.demodb_query_28_text}} | [Link](DemoDB-Queries-Customers.md#example-4)                |
|                            | {{book.demodb_query_29_text}} | [Link](DemoDB-Queries-Customers.md#example-5)                |
|                            | {{book.demodb_query_30_text}} | [Link](DemoDB-Queries-Customers.md#example-6)                |
|                            | {{book.demodb_query_31_text}} | [Link](DemoDB-Queries-Customers.md#example-7)                |
|                            | {{book.demodb_query_32_text}} | [Link](DemoDB-Queries-Customers.md#example-8)                |
|                            | {{book.demodb_query_33_text}} | [Link](DemoDB-Queries-Customers.md#example-9)                |
|                            | {{book.demodb_query_34_text}} | [Link](DemoDB-Queries-Customers.md#example-10)               |
| **Orders**                 | {{book.demodb_query_9_text}}  | [Link](DemoDB-Queries-Orders.md#example-1)                   |
|                            | {{book.demodb_query_11_text}} | [Link](DemoDB-Queries-Orders.md#example-2)                   |
| **Recommendations**        | {{book.demodb_query_22_text}} | [Link](DemoDB-Queries-Recommendations.md#example-1)          |
|                            | {{book.demodb_query_23_text}} | [Link](DemoDB-Queries-Recommendations.md#example-2)          |
| **Business Opportunities** | {{book.demodb_query_7_text}}  | [Link](DemoDB-Queries-Business-Opportunities.md#example-1)   |
|                            | {{book.demodb_query_14_text}} | [Link](DemoDB-Queries-Business-Opportunities.md#example-2)   |
| **Shortest Paths**         | {{book.demodb_query_21_text}} | [Link](DemoDB-Queries-Shortest-Paths.md#example-1)           |
| **Traverses**              | {{book.demodb_query_19_text}} | [Link](DemoDB-Queries-Traverses.md#example-1)                |
|                            | {{book.demodb_query_20_text}} | [Link](DemoDB-Queries-Traverses.md#example-2)                |








{'fraction_non_alphanumeric': 0.16831242771995375, 'fraction_numerical': 0.018681611956231654, 'mean_word_length': 1.5359801488833746, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 11, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5277080', 'n_tokens_mistral': 3640, 'n_tokens_neox': 3335, 'n_words': 290}