Node selection query languages for trees