Unions and intersections of sets