The sub-query can easily be rewritten to return an order key identifying the hierarchical position of the matching row within the collection of XML documents, a doc ID identifying the XML document containing the matching row, or other information useful to the searcher.