EJW asked: Where does xml:lang go in a query?

This is answered by text in 5.6.1 (regardless of how the issue in 5.6.1 is resolved)

 julian.reschke replied " What would be the *purpose* of putting xml:lang into a query?"

The purpose is to allow one to express queries more precisely, e.g. to distinguish between the English word "hoop" (a circular object) and Dutch "hoop" (hope).  Imagine a property that holds keywords for a resource.   See 4.4 in, and 2.12 in