Query editor
select(select sum(_value)/1000000000000000000 from data_polygon.DATAv2onPolygon_call_transferAndCall where _data = 0x7374616b65 and call_success = true) as "stakes on DATA contract",(select sum(_value)/1000000000000000000 from data_polygon.DATAv2onPolygon_call_transferAndCall where _data = 0x616c6c6f636174696f6e and call_success = true) as "allocations on DATA contract",(SELECT SUM(amountWei)/1000000000000000000 FROM streamr_polygon.Sponsorship_call_stake WHERE call_success = TRUE) as "total_stakes on sponsorships",(SELECT SUM(output_payoutWei)/1000000000000000000 from streamr_polygon.Sponsorship_call_withdraw WHERE call_success = TRUE) as "total_withdrawn_earnings from sponsorships"/*where _data = 0x616c6c6f636174696f6e and call_success = true /* 0x616c6c6f636174696f6e allocation *//* 0x7374616b65 stake */