Query editor
-- We are creating a table for creators who are eligible for OP 4 Airdrop-- Including airdropped amount, their tier, then pulling in their ens and if creator has-- claimed an amount :)withclaimed_addresses as (selectto,evt_block_time,round(value / pow(10,18), 2) as claimed_opfrom erc20_optimism.evt_transfer ewhere "from" = 0xfb4d5a94b516df77fbdbcf3cfeb262baaf7d4db7),creators as (selectl.address,ens.name as ens,round(l.total_op, 2) as airdropped_op,c.claimed_op as claimed_op,casewhen c.claimed_op is null then 'Not Claimed'when c.claimed_op > 0 then 'Claimed'end as statusfrom dune.oplabspbc.dataset_op_airdrop_4_simple_list lleft join claimed_addresses con l.address = c.toleft join labels.enson ens.address = c.to),creators_cat as (select*,casewhen airdropped_op >= 20 AND airdropped_op < 500 THEN '1. >= 20 and < 500 OP'when airdropped_op >= 500 AND airdropped_op < 1500 THEN '2. >= 500 and < 1.5k OP'when airdropped_op >= 1500 AND airdropped_op < 3000 THEN '3. >= 1.5k and < 3k OP'when airdropped_op >= 3000 AND airdropped_op < 6000 THEN '4. >= 3k and < 6k OP'when airdropped_op = 6000 THEN '5. 6k OP'end as tierfrom creators)selectaddress,ens,tier,claimed_op,airdropped_op,statusfrom creators_catorder by status,tier,ens asc