Created
June 1, 2022 13:19
-
-
Save sourabhbagrecha/c49728356e1f869d7e46408429e6650e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"$group": { | |
"_id": "$batsman", | |
"total_runs": { | |
"$sum": "$batsman_runs" | |
} | |
} | |
}, | |
{ | |
"$sort": { | |
"total_runs": -1 | |
} | |
}, | |
{ | |
"$limit": 20 | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment