Fixed some set queries not working due to intersecting result sets with the empty set.