This topic explains how to access the API features for queries in the Workflow module.
More:
View Workflow Query Results
View Workflow Query Details
Count Workflow Queries