.. _section-Query Execution: Query Execution ~~~~~~~~~~~~~~~ To see a list of latent queries in the KB, load its .flr file into the **Text Editor**, then click the **Queries** tab to launch the **Queries** plugin. The list of available latent queries defined in the .flr file will be displayed in the **Queries** window. See :numref:`figure-Queries-family.png` for a list of latent queries in family.flr as shown in the **Queries** window. .. _figure-Queries-family.png: .. figure:: ../../figs/Queries-family.png :alt: List of latent queries from family.flr List of latent queries from family.flr To execute a query, simply click to higlight it and press **Execute**, as illustrated in :numref:`figure-Queries-execute.png`. .. _figure-Queries-execute.png: .. figure:: ../../figs/Queries-execute.png :alt: Query ’What are all the grandparent/grandson pairs?’ is selected to be executed Query ’What are all the grandparent/grandson pairs?’ is selected to be executed If there are unsaved changes made to the .flr file in the **Text Editor**, a dialog window will pop up asking if the changes are to be saved before query execution. To save the changes before querying, check the unsaved file and press OK, as illustrated in :numref:`figure-Queries-save-dirty-file.png`. .. _figure-Queries-save-dirty-file.png: .. figure:: ../../figs/Queries-save-dirty-file.png :alt: Dialog window asking to save changes before query execution Dialog window asking to save changes before query execution During query execution, a progress window pops up with diagnostics statements. This window goes away when the query is done. The **Query results** plugin automatically launches to display the query results. To see more details on the **Query Results** plugin, please refer to Section :ref:`section-Query Results`. .. figure:: ../../figs/Queries-results.png :alt: Results for query ’What are all the grandparent/granson pairs?’ are shown in **Query Results** Results for query ’What are all the grandparent/granson pairs?’ are shown in **Query Results**