===Example===
In the following example, a client registers a new session and executes the [[Commands#INFO|INFO]] database command. Next, it creates a new query instance for the XQuery expression {{Code|1, 2+'3'}}, which receives the id {{Code|1}}. The query is then evaluated via the {{Code|RESULTS}} command, and the server returns the result of the first subexpression {{Code|1}} and an error for the second sub expression. Finally, the query instance and client session are closed.
# Client connects to the database server socket