getting only leaf and group node types in news selection query