Query editor
with profile as(select handle, profileId, to as addressfrom lens_polygon.LensHub_evt_ProfileCreated), follower as(select t.profileId as profileId, count(t.profileId) as followerfrom(select transform(cast(profileIds as array(varchar)), x -> cast(x as uint256)) as profileIdfrom lens_polygon.LensHub_call_follow)cross join UNNEST(profileId) as t(profileId)group by 1), post as(select cast(profileId as uint256) as profileId, sum(count_post) as postfrom(select json_query(vars, 'lax $.profileId' omit quotes) as profileId, count(call_tx_hash) as count_postfrom lens_polygon.LensHub_call_postwhere call_success = truegroup by 1unionselect json_query(vars, 'lax $.profileId' omit quotes) as profileId, count(call_tx_hash) as count_postfrom lens_polygon.LensHub_call_postWithSigwhere call_success = truegroup by 1)group by 1), comment as(select cast(profileId as uint256) as profileId, sum(count_comment) as commentfrom(select json_query(vars, 'lax $.profileId' omit quotes) as profileId, count(call_tx_hash) as count_commentfrom lens_polygon.LensHub_call_commentwhere call_success = truegroup by 1unionselect json_query(vars, 'lax $.profileId' omit quotes) as profileId, count(call_tx_hash) as count_commentfrom lens_polygon.LensHub_call_commentWithSigwhere call_success = truegroup by 1)group by 1), collect as(select cast(profileId as uint256) as profileId, sum(count_collect) as collectfrom