select username , sum(timelen) as len from a where  rownum <=50
group by username order by len desc