Query editor
with action_data as (with post_data as (select call_block_time,call_tx_hash,-- vars:profileId as profile_idJSON_VALUE(vars, 'lax $.profileId') as profile_idfrom lens_polygon.LensHub_call_postwhere call_success = trueunion allselect call_block_time,call_tx_hash,JSON_VALUE(vars, 'lax $.profileId') as profile_idfrom lens_polygon.LensHub_call_postWithSigwhere call_success = true),comment_data as (select call_block_time,call_tx_hash,JSON_VALUE(vars, 'lax $.profileId') as profile_idfrom lens_polygon.LensHub_call_commentwhere call_success = trueunion allselect call_block_time,call_tx_hash,JSON_VALUE(vars, 'lax $.profileId') as profile_idfrom lens_polygon.LensHub_call_commentWithSigwhere call_success = true),mirror_data as (select call_block_time,call_tx_hash,JSON_VALUE(vars, 'lax $.profileId') as profile_idfrom lens_polygon.LensHub_call_mirrorwhere call_success = trueunion allselect call_block_time,call_tx_hash,JSON_VALUE(vars, 'lax $.profileId') as profile_idfrom lens_polygon.LensHub_call_mirrorWithSigwhere call_success = true)select 'Post' as action_type, * from post_dataunion allselect 'Mirror' as action_type, * from mirror_dataunion allselect 'Comment' as action_type, * from comment_data)select action_type,count(*) as transaction_count,count(distinct profile_id) as profile_count