or download this
mysql> select name,selecting,rejecting from((select name,selecting,rej
+ecting from ues order by name desc limit 5 )union all(select 'others
+' as name ,sum(selecting) as selecting ,sum(rejecting) as rejecting
+from (select selecting,rejecting from ues order by name desc limit 18
+446744073709551615 offset 5) go)) go;
...
| ncsim_lp | 0 | 3 |
| others | 13633 | 659 |
+-------------+--------------+--------------+