Query editor
WITHsln_value AS (SELECT"from" as wallet,SUM(value) / 1e18 as slnFROMerc20_polygon.evt_transferWHERE"to" = 0x91E042C908ef3eF501EF69eddDB8daD02c2D24a9AND contract_address = 0x1Fe78e67Ad10ba3a9583e672Cac0480737D1B9f7AND exists (select1fromsmarttokenlabs_polygon.RockPaperScissors_call_newGame ngwhereng.call_tx_hash = evt_tx_hashAND ng.call_success)group by1),top_2500 as (select"from" as wallet,count(*) as games_countfrompolygon.transactions trwheretr.to = 0x91E042C908ef3eF501EF69eddDB8daD02c2D24a9and tr.successAND EXISTS (SELECT1FROMsmarttokenlabs_polygon.RockPaperScissors_call_newGame AS ngWHEREng.call_tx_hash = tr.hash)group by1order by2 desclimit2500)SELECTtop_2500.*,sln_value.sln as "$SLN_waged"fromtop_2500left join sln_value on top_2500.wallet = sln_value.walletorder by2 desc