Query editor
selectdate_trunc ('{{Select Date Granularity}}', block_timestamp) as dt,publication_type as pub_type,--app,COUNT(DISTINCT publication_id) as publications_numberfrom dune.lens.publication_recordWHERE block_timestamp > DATE_TRUNC('day', NOW()) - INTERVAL '{{Select Timeframe}}' dayAND block_timestamp < date_trunc('day', current_date)Group by 1,2UNION ALLselectdate_trunc ('{{Select Date Granularity}}', action_at) as dt,"type" as pub_type,COUNT(DISTINCT CAST(publication_id AS VARCHAR) || '_' || CAST(actioned_by_profile_id AS VARCHAR)) AS unique_reactionsfrom dune.lens.publication_reactionWHERE action_at > DATE_TRUNC('day', NOW()) - INTERVAL '{{Select Timeframe}}' dayAND action_at < date_trunc('day', current_date)Group by 1,2