select uid,count(distinct trace_id) cnt from user_client_log u group by uid order by cnt desc,uid limit 3