Fix effective predicate extraction of UNION ALL