|stats sum(data) as totaldata by userid url
|sort 0 +userid +totaldata desc
|top limit=25 totaldata url by userid showcount=false showperc=false
|table userid url totaldata
This is based on a similar problem I solved. I had to modify it slightly to fit into your problem so some small errors are possible.
... View more