Project(Extend(Extend(ToMultiSet({{(?y, 1)}, {(?y, 2)}}), ?x, rand() ), ?count, count(?x, , distinct) ), {?count})