Run the statements in the right panel.

The return statement is used in XQuery to return variables and XML structures. The first statement in the right panel is an example of the return syntax.

However, if there is no logic in XQuery body, a return statement is not required. That is why the second statement does not have a return statement.

You should see two result sets open up in the lower right panel.