Queries can accomplish a few different tasks. Primarily, queries are used to find specific data by filtering by specific criteria. You can easily define complex search functions through the query analysis tool using a simple point-and-click configuration and find those process instances that match those conditions with sub-second response time.
The Process Query Analysis tool allows you to quickly and easily define complex searches based on events, their attributes, event ordering, time gaps, as well as including events that failed to happen. This gives you the ability to define exactly what you are looking to find in your process as it was historically executed.
In this analysis you can define numerous selections to search upon.