:<code>[http://admin:admin@localhost:8984/rest/factbook?query=//city/name&wrap=yes http://admin:admin@localhost:8984/rest/factbook?query=//city/name&wrap=yes]</code>
In the next request, <code>US-ASCII</code> is chosen as output encoding, and the database query <code>eval.xq</code> is opened within the XQuery expressionevaluated:
:<code>[http://admin:admin@localhost:8984/rest?queryrun=distinct-values(db:open('factbook')//religions)eval.xq&encoding=US-ASCII http://admin:admin@localhost:8984/rest?queryrun=distinct-values(db:open('factbook')//religions)eval.xq&encoding=US-ASCII]</code>
The next URL turns on XML wrapping and lists all database users that are known to BaseX: