Implemented hierarchical query support in form of nthchild operator