XQuery is compliant with XPath and uses XPath expressions to restrict searches on XML collections. The document provides an XML collection of books and demonstrates three versions of an XQuery statement that returns the titles of books with a price greater than 30. Each version returns the same two book titles, but uses a different method to filter the books by price.