---
title: Using both the query builder and manual editing
slug: device-management-guide/android/using-both-the-query-builder-and-manual-editing
createdAt: 2026-10-06T07:48:36.320Z
---

Use the query builder to start an expression, look up field syntax, and select predetermined values. Then, edit the expression directly as needed.

**Procedure**

1. Select fields and criteria.
2. Click <font color="#323232">All</font> to combine multiple criteria with a logical AND or <font color="#323232">Any</font> to combine multiple criteria with OR. You can manually edit individual logical operators in the expression field.
3. In the expression field, edit the expression directly.
4. For example, you can add parentheses, change logical operators, or manually edit field names or values.
5. The automatic syntax check displays a status icon next to the expression field. A green icon indicates that the syntax is correct, and a red icon if incorrect.
6. When the syntax is correct, click <font color="#323232">Search</font> to display the matching devices and their owners.

Once you manually edit the expression, the query builder is covered with a gray box to indicate it no longer represents the current state of the expression. Click the <font color="#323232">Reset</font> link to remove your manual edits and continue using the query builder.

**Example**: Find all iOS or Android devices that use AT\&T as their service operator.

Figure: Service operator in Query Builder

![](https://api.archbee.com/api/optimize/V3jJx_afLEcmDauLTrzss/DiALSwonspZGSEmT2g3kx_362.png)

Build the expression to match the above example.

**Procedure**

1. Click <font color="#323232">Advanced Search </font>to open the query builder.
2. Select <font color="#323232">Platform</font> in the first field, select <font color="#323232">Equals</font> for the operator, then select <font color="#323232">iOS</font> as the platform.
3. Click the plus icon to add another row for criteria.
4. Select **Platform**, **Equals**, and **Android** as the field, operator, and platform value, respectively.
5. Click the plus icon to add a third row for criteria.
6. Select <font color="#323232">Home Operator Name</font> for the field and <font color="#323232">Equals</font> for the operator.
   Notice that the value field adjusts automatically to display service operator values by country.
7. Accept the first value field and select <font color="#323232">AT&amp;T</font> in the second value field.

:::Paragraph{indent="1"}
Manually edit the expression.
:::

8. Replace the first <font color="#323232">AND</font> with <font color="#323232">OR</font>.
   The syntax is checked automatically as you type. Note a red icon indicating incorrect syntax while you edit the expression.
9. Add parentheses around the phrase to read:
   ("common.platform" = "iOS" OR "common.platform" = "Android") AND
   “common.home\_operator\_name” = “ATT\&T”
   Note a green icon indicating correct syntax has replaced the red icon. Your advanced search will look the same as the original image (see below).

::Image[]{src="https://api.archbee.com/api/optimize/V3jJx_afLEcmDauLTrzss/6NXaLBWSJWAeGnZ16mJNC_363.png" position="flex-start" size="100" width="1335" height="577" initialPath="../Resources/Images/36_3.png" githubPath="Device Management Guide for Windows/Resources/Images/36_3.png" darkWidth="1335" darkHeight="577" showCaption="false" indent="1"}

:::Paragraph{indent="1"}
To revert to the original expression without your manual edits, click the <font color="#323232">Reset</font> link to the right of the expression.
:::

10. Click <font color="#323232">Search</font> to display the matching devices and their owners.
