List the titles and years of all books published by Addison-Wesley after 1991, in alphabetic order.
<bib>
{
for $b in doc("bib.xml")//book[publisher = "Addison-Wesley"]
order by ($b/title)
return
<book>
{ $b/@year } { $b/title }
</book>
}
</bib>
Adapted from XML Query Use Cases