# Modify Queries using the Query Editor

Once a query has been submitted, the Query Editor can be used to further refine the query as an alternative to writing in Query Language. This will enable you to update the query on basis of the data properties associated with any of the relationships and concepts within your query.&#x20;

{% embed url="<https://www.loom.com/share/c6e2cb3c81cc40ba93f888ff32d0b32b?sid=e90e04bd-3d93-406d-97e5-d29cafff132b>" %}

\
For example the biological question "Which genes are upreulgated in tumor samples diagnosed with endometrium adenocarcinoma?" Translates to the query <br>

<pre data-overflow="wrap"><code><strong>(Gene)&#x3C;- upregulates &#x3C;-(DifferentialExpressionDataset)-> experimental group includes ->(TumorSample)-> pathologically confirmed to be ->(Disease{displayName="endometrium adenocarcinoma"})
</strong></code></pre>

Let's say you want to update the logR and p-adjusted cut off values associated with "upregulates" and update the disease to be "Liver Cancer"

Select "Query Editor" below the search bar to open the tool. A dialog will appear that will allow you to modify all of the data properties associated with the concepts and relationships within the query.&#x20;

The modified query would be&#x20;

{% code overflow="wrap" %}

```
(Gene)<- upregulates { logR > 1 & padj < 0.05 } <-(DifferentialExpressionDataset)-> experimental group includes ->(TumorSample)-> pathologically confirmed to be ->(Disease { displayName="Liver Cancer" })code
```

{% endcode %}

Let's walk through how we generated the modified query.&#x20;

### Configuring a Data Property

Scroll through the dialog to identify the concept or relationships you would like to add a property to. &#x20;

<figure><img src="/files/Qs94rW9gvZyNyjujA2uH" alt=""><figcaption></figcaption></figure>

Fill in the subsequent inputs&#x20;

**Data Property**&#x20;

This input will display all of the data properties available for you to use scoped to a specific concept or relationship.&#x20;

**Property type**&#x20;

* Number (numerical values)
* Text (text based values)

**Operator**&#x20;

If the property is a Text  Select from&#x20;

* Equals&#x20;
* Not Equals&#x20;
* Regex Match&#x20;

If the property is a Number select from&#x20;

* Less than or equal&#x20;
* Greater than or equal&#x20;
* Not Equals&#x20;
* Less than&#x20;
* Greater than&#x20;
* Equals&#x20;

**Value**&#x20;

* Use this input to type in the value you would like to filter on. This must be an exact match.

### Adding multiple Data Properties to a Concept or Relationship

Multiple data property filters can be added to each concept or relationship by selecting " Add Property".&#x20;

<figure><img src="/files/crEi8evOfQkgTaIlJGBN" alt=""><figcaption></figcaption></figure>

Once all of the properties have been configured submit the query to obtain your refined answer.


---

# Agent Instructions: 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://docs.biobox.io/guide/how-to/ask-multi-modal-questions/ask-questions-with-query-language/modify-queries-using-the-query-editor.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.
