Fix parsing of UNION

Previously SELECT 123 UNION DISTINCT SELECT 123 UNION ALL SELECT 123 was
parsed as SELECT 123 UNION DISTINCT SELECT 123 UNION DISTINCT SELECT 123