X081: Exceeds maximum number of UNIONed queries.

A maximum of 32 subselects may be connected by the UNION operator (i.e. UNION should appear no more than 31 times in a command).
Restriction: This topic applies to Windows environments only.