WITH can be followed by ORDER BY and ORDER BY can be followed by RETURN.

Needed for DATAGRAPH-338 workaround