The number of operations, functions and conditions is too large.
Simplify the SQL statement. You may also want to try to obtain the effect of the SQL statement with several SQL statements.