Query editor
SELECTmain."peerId",main."readableAccumulatedUptime" AS uptime,main."isActive" AS Active,sub.totalActiveNodesFROM"dune"."masa-network"."dataset_masa_oracle_node_data_testnet_1" mainJOIN (SELECTCOUNT(*) AS totalActiveNodesFROM"dune"."masa-network"."dataset_masa_oracle_node_data_testnet_1_1"WHERE"peerId" IS NOT NULL AND "peerId" != '') sub ON trueWHEREmain."peerId" IS NOT NULL AND main."peerId" != ''ORDER BYCAST(main."accumulatedUptime" AS BIGINT) DESC;