Support for sibling direction in queries