Check for UNION mixed with UNION ALL