added JQL function for executing subqueries