Enhanced NIL REST interface: get nodes by query