Query editor
-- Top auditors by number of audits initiatedWITH auditor_stats AS (SELECTa.evt_tx_from as player,a.fromTokenId,COUNT(*) as audits_initiated,COUNT(DISTINCT a.targetTokenId) as unique_targetsFROM transientlabs_ethereum.deathandtaxes_evt_audited aGROUP BY 1, 2),-- Most targeted tokenstarget_stats AS (SELECTtargetTokenId,COUNT(*) as times_auditedFROM transientlabs_ethereum.deathandtaxes_evt_auditedGROUP BY 1),-- Tax payment frequency per playertax_stats AS (SELECTevt_tx_from as player,tokenId,COUNT(*) as times_paid_taxes,MAX(lastEpochPaid) as last_epoch_paid,MIN(evt_block_time) as first_payment,MAX(evt_block_time) as last_paymentFROM transientlabs_ethereum.deathandtaxes_evt_taxespaidGROUP BY 1, 2),-- Killed tokens with their ownerskill_stats AS (SELECTexecutor,COUNT(*) as kills_executedFROM transientlabs_ethereum.deathandtaxes_evt_killedGROUP BY 1),-- Killed token IDskilled_tokens AS (SELECT tokenId, epochKilled, executor, evt_block_time as killed_atFROM transientlabs_ethereum.deathandtaxes_evt_killed)-- PLAYER SCOREBOARD: combine all metrics per player addressSELECTCOALESCE(t.player, a.player, k.executor) as player_address,COALESCE(t.tokenId, a.fromTokenId) as token_id,COALESCE(t.times_paid_taxes, 0) as tax_payments,COALESCE(t.last_epoch_paid, 0) as last_epoch_paid,COALESCE(a.audits_initiated, 0) as audits_initiated,COALESCE(a.unique_targets, 0) as unique_targets_audited,COALESCE(k.kills_executed, 0) as kills_executed,CASEWHEN kt.tokenId IS NOT NULL THEN 'DEAD'ELSE 'ALIVE'END as status,kt.epochKilled,CASE