[#3511] Improve DISTINCT predicate emulation through INTERSECT