query on a tree 2