Run patient set query
Runs the query and returns the result and its status