How to get number of users whose reading time sum(for each) is less than current user reading time sum

I have a thing stat, in that there is duration, and a single user has multiple stats, so there is multiple duration, so how can we get those user whose duration sum is less than the current user duration sum.