Query editor
withpins_claimed as (selectcount(*) as num_pins_collectedfromguildxyz_polygon.GuildCredential_evt_Claimedunion allselectcount(*) as num_pins_collectedfromguildxyz_bnb.GuildPin_evt_Claimedunion allselectcount(*) as num_pins_collectedfromguildxyz_arbitrum.GuildPin_evt_Claimedunion all/*selectcount(*) as num_pins_collectedfromguildxyz_zksync.GuildPin_evt_Claimedunion all*/SELECTcount(*) as num_pins_collectedfrom zksync.transactionswhere to = 0xD1E4254fE7E56f58777BA624e7EEB3644F872b0D and success = TRUE)select sum(num_pins_collected) as num_pins_collectedfrom pins_claimed