Code Inside

Native Query expression is dealt as a normal peace of code. Therefore, any language construction is legible inside:

However, some restrictions do apply:

In a case of uncaught exception within a Native Query a null result is returned.

For more info see Native Query Collection