* New function to find nodes in a query set