select sum(num) from (
select num rank() over(order by num) rk from tbname
where year='2004' and month='10'
) t
where rk>10;