added support for selecting up to ten nodes from single query