Query editor
with tvl as (selecttime,amm as pool_type,tvlfrom (select time, amm, tvl from query_2837359 --eclp maticX/matic tvlunion allselect time, amm, tvl from query_2609124 --eclp stMatic/wMatic tvlunion allselect time, amm, tvl from query_2795675 --eclp wstETH/wETH tvl opunion allselect time, amm, tvl from query_3000647 --eclp wstETH/cbETH-- union all-- select time, amm, tvl from query_2466575 --usdc/tusd gyro-proto reserveunion allselect time, amm, tvl from query_2986606 --wstETH/WETH ETHunion allselect time, amm, tvl from query_3058841 --R/sDAIunion allselect time, amm, tvl from query_2801688 --swETH/wstETHunion allselect time, amm, tvl from query_3391917 --newer version swETH/wstETH ETHunion allselect time, amm, tvl from query_3176854 --mevETH/WETHunion allselect time, amm, tvl from query_3190172 --arbitrum usdc/usdtunion allselect time, amm, tvl from query_3266947 --GYD/sDAI sAMMunion allselect time, amm, tvl from query_3266968 --GYD/USDT sAMMunion allselect time, amm, tvl from query_3266976 --GYD/USDC sAMMunion allselect time, amm, tvl from query_3392074 --GUSD/USDPunion allselect time, amm, tvl from query_3392118 --LUSD/crvUSDunion allselect time, amm, tvl from query_3395508 --bootstrapping pool sDAIunion allselect time, amm, tvl from query_3409999 --GYD/GHOunion allselect time, amm, tvl from query_3410005 --GHO/USDC tigher price rangeunion allselect time, amm, tvl from query_3410016 --GHO/USDC)group by 1,2,3)selecttime,pool_type,tvl,sum(tvl) over (partition by time) as tt_tvlfrom tvl--where time < cast((now()) as date)order by time desc