Grouping By Sort and Limit

Appreciate your help @steevej . One question though - is there a way to run these as a single command ? So far I was running find() commands from Mongo shell, or from a Python code using pymongo.
I’ll see what Google will have to say about that too

Thanks again!