Query editor
with execs as (selectevt_block_time,keeperId as keeper,compensation/1e18 as compensation_xDAI,jobKey as job,evt_tx_hashfrom powerpool_gnosis.PPAgentV2Randao_evt_Executewhere contract_address = 0xD6d094a2a2dB8ceB9c00ae719E37011f22B7a8Acand evt_block_time >= current_timestamp - interval '30' day),txs as (select hash, gas_price*gas_used/1e18 as tx_fee_xDAI, gas_price, gas_used from gnosis.transactionswhere block_time >= current_timestamp - interval '30' dayand hash in (select evt_tx_hash from execs))--,--new as (selecte.evt_block_time,e.keeper,e.compensation_xDAI-t.tx_fee_xDAI as keeper_earned,e.compensation_xDAI,t.tx_fee_xDAI,gas_price,gas_used,e.job,e.evt_tx_hashfrom execs eleft join txs t on t.hash = e.evt_tx_hashorder by 1 desc/*)selectapprox_percentile(tx_fee_xDAI, array[0.1, 0.5, 0.9]) as tx_fee_xDAIfrom new*/