Query editor
withto_claim_tiers as (selecttier,sum(total_op) as total_opfrom (selectcasewhen total_op >= 20 AND total_op < 500 THEN '1. >= 20 and < 500 OP'when total_op >= 500 AND total_op < 1500 THEN '2. >= 500 and < 1.5k OP'when total_op >= 1500 AND total_op < 3000 THEN '3. >= 1.5k and < 3k OP'when total_op >= 3000 AND total_op < 6000 THEN '4. >= 3k and < 6k OP'when total_op = 6000 THEN '5. 6k OP'end as tier,total_opfrom dune.oplabspbc.dataset_op_airdrop_4_simple_list)group by tier),claimed_tiers as (selecttier,sum(total_op) as total_opfrom (selectcasewhen total_op >= 20 AND total_op < 500 THEN '1. >= 20 and < 500 OP'when total_op >= 500 AND total_op < 1500 THEN '2. >= 500 and < 1.5k OP'when total_op >= 1500 AND total_op < 3000 THEN '3. >= 1.5k and < 3k OP'when total_op >= 3000 AND total_op < 6000 THEN '4. >= 3k and < 6k OP'when total_op = 6000 THEN '5. 6k OP'end as tier,total_opfrom (selecte.value / pow(10,18) as total_opfrom erc20_optimism.evt_transfer ewhere "from" = 0xfb4d5a94b516df77fbdbcf3cfeb262baaf7d4db7))group by tier)selectc.tier,round(c.total_op / pow(10,6), 2) as claimed_op,round(tc.total_op / pow(10,6), 2) as to_claim_op,round(c.total_op / tc.total_op * 100, 2) as claimed_percentfrom to_claim_tiers tcleft join claimed_tiers c on tc.tier = c.tierorder by c.tier asc