query only S subtrees