|-
| '''Examples'''
|The following query binds the integer {{Code|123}} to the variable {{Code|$n}} and returns {{Code|246}}:<pre class="brush:xquery">let $c := client:connect('server1.basex.org', 8080, 'jack', 'C0S19tt2X')return client:query($c, "$n * 2", map{ 'n' := 123 }))</pre>The following query performs a query on a first server, the results of which are passed on to a second server:
<pre class="brush:xquery">
let $c1 := client:connect('server1.basex.org', 8080, 'jack', 'C0S19tt2X')