select name,g.s_g from user join
(select user_id,sum(grade_num) s_g from grade_info where type='add' group by user_id) g
on user.id = g.user_id
order by g.s_g desc limit 1
select name,g.s_g from user join
(select user_id,sum(grade_num) s_g from grade_info where type='add' group by user_id) g
on user.id = g.user_id
order by g.s_g desc limit 1