For the last optional lab…
Instead of using $gt in project and then checking true or false in $match, I directly used $size with $setIntersection and stored it in a field say count in $project like so
and then in next $match I used $gt to check if count is greater than 0 like so
But this approach gives a different answer and I don’t understand why ?