query on a tree iv