Query editor
WITH sablier AS ( -- if you add other Sablier streams other than zksync and scroll, need to exclude them from the FULL OUTER JOIN in row 260 below!SELECTblockchain,member_raw,member,SUM(vested_value) AS vested,SUM(vesting_value) AS vestingFROM (query_4553616-- PG Sablier Streams https://dune.com/queries/4553616?sidebar=none)GROUP BY member_raw, member, blockchain)SELECTCASEWHEN weight > 0 THENCAST(ROW_NUMBER() OVER (ORDER BY weight DESC) - 1 AS VARCHAR(10)) --"- 1" starts the count at 0, delete to start at 1ELSE'-'END AS row_number,member,weight,vesting,distributedFROM (SELECTmember,MAX(weight) AS weight,SUM(vesting) AS vesting,SUM(distributed) AS distributedFROM (query_5227826-- Vesting + Distributions by Chain / Split https://dune.com/queries/5227826?sidebar=none)GROUP BY member)