Query editor
select varbinary_position(script_hex, 0x434E545250525459) as magic_pos, substr(script_hex,1,3) as script_prefix, substr(script_hex,-2) as script_suffix, count(*) as output_count, count(distinct tx_id) as tx_count, round(sum(value),8) as net_value, max(block_height) as last_block, min(block_height) as first_blockfrom bitcoin.outputswhere substr(script_hex,1,1) = 0x51and substr(script_hex,-1) = 0xae-- and varbinary_position(script_hex, 0x434E545250525459) > 0group by 1,2,3order by 4 desclimit 100