Setting Variables in a Query¶
Before executing a selected query, values may be supplied to variables to limit the scope of the query execution. For example, in the Queries window, click to highlight the query ’What are all the grandparent/grandson pairs?’. Click Variables to reveal the 2 variables in the query: ?Grandparent and ?Grandson. Click the Value field next to ?Grandparent and type in Dana.

Fig. 198 Variable ?Grandparent set to Dana for query ’What are all the grandparent/granson pairs?’
Press Execute. The query will be executed with the variable ?Grandparent set to Dana, and Query Results returned will show results for grandparent Dana only.

Fig. 199 Query results for ’What are all the grandparent/granson pairs?’ with ?Grandparent set to Dana