Working with Subqueries

The Query Editor identifies subqueries by drawing a box around the subquery elements and changing the color of the subquery’s vertices from blue to red. You must define at least some of the subquery’s component elements by creating vertices and edges before you can define the subquery itself. You can add additional elements to the subquery by creating new vertices and edges within the subquery box.

To add a subquery:

  1. Create the vertices and edges that will form the subquery.

  2. In the Query Editor toolbar, click or press Ctrl-4 to choose the subquery tool.

  3. Drag a rectangle around the subquery elements. The Query Editor draws a rectangle around the target elements and changes subquery vertices to red.

To delete a subquery:

  1. Click or press Ctrl-1 to choose the selection tool.

  2. Select the subquery by clicking the subquery rectangle’s boundary edge.

  3. Press Delete.

The Query Editor removes the subquery rectangle but leaves the subquery’s vertices and edges in place. Vertices that were in the subquery are changed back to blue.