Query editor
WITH por AS (SELECTSUM(latest_answer) AS por_values,COUNT(DISTINCT chain) AS por_chains,COUNT(DISTINCT proxy_address) AS por_proxies,MAX(FROM_UNIXTIME(TRY_CAST(latest_update_at AS DOUBLE))) AS por_latest_tsFROM dune.datanthony.proof_of_reserve),tx AS (SELECTSUM(update_count) AS total_updates,MAX(COALESCE(TRY(date_parse(replace(last_update_time, ' +UTC', ''), '%Y-%m-%d %I:%i:%s %p')),TRY(date_parse(substr(last_update_time, 1, 22), '%Y-%m-%d %I:%i:%s %p')),TRY(from_iso8601_timestamp(last_update_time)),TRY(from_unixtime(TRY_CAST(last_update_time AS bigint))))) AS tx_latest_tsFROM dune.datanthony.transmit_stats),gf AS (SELECTSUM(payloadsize) AS gf_bytes,MAX(COALESCE(TRY(date_parse(replace(last_update_time, ' +UTC', ''), '%Y-%m-%d %I:%i:%s %p')),TRY(date_parse(substr(last_update_time, 1, 22), '%Y-%m-%d %I:%i:%s %p')),TRY(from_iso8601_timestamp(last_update_time)),TRY(from_unixtime(TRY_CAST(last_update_time AS bigint))))) AS gf_latest_tsFROM dune.datanthony.greenfield_objects_0x000000000000000000000000000000000000000000000000000000000000bab7)SELECTpor.por_values,por.por_chains,por.por_proxies,tx.total_updates,por.por_latest_ts,tx.tx_latest_ts,FORMAT('%s GB', ROUND(gf.gf_bytes / 1024.0 / 1024.0 / 1024.0, 2)) AS greenfield_gb,array_max(filter(ARRAY[por.por_latest_ts, tx.tx_latest_ts, gf.gf_latest_ts],x -> x IS NOT NULL)) AS last_system_updateFROM por, tx, gf