Multiple query generation of queries with OUTER function is now idempotent