Query editor
with p as (select b.*, row_number() over (order by b.eth desc) as rankfrom (SELECT_to,sum(_value)/1e18 as ethFROM fei_protocol."GenesisGroup_evt_Purchase" as agroup by _to) as b)select *,SUM(eth) OVER (ORDER BY rank) as TOTALfrom p limit {{limit_number}}