Query editor
-- with eth_staked as (select-- DATE(block_time) as Date,-- sum(amount_staked) as ETH_staked-- from staking_ethereum.deposits-- where depositor_entity = 'Stkr (Ankr)'-- GROUP by DATE(block_time)-- order by 1 desc-- ),with eth_staked as (selecttime, amount as ETH_staked from query_2392488),apr_ratio as (select *,lag(ratio1,1) over (order by time asc) as ratio2from ( select date_trunc('day', evt_block_time) as time, evt_block_number as block_number, (newRatio/1e18) as ratio1, contract_address as contractfrom ankr_ethereum.AETHC_Token_v2_evt_RatioUpdate))select apr_ratio.time, eth_staked.ETH_staked, ((apr_ratio.ratio2-apr_ratio.ratio1)*(31536000/86400))*100 as aprfrom apr_ratio join eth_stakedon apr_ratio.time = eth_staked.timeWHERE eth_staked.ETH_staked < 300and ((apr_ratio.ratio2-apr_ratio.ratio1)*(31536000/86400))*100 > 0and ((apr_ratio.ratio2-apr_ratio.ratio1)*(31536000/86400))*100 < 15order by 1 desc