Query editor
with dates AS (withday_seq AS (SELECT(sequence(cast('2019-11-01' AS DATE),cast(now() AS DATE),interval '1' day)) day)SELECTdays.dayFROMday_seqCROSS JOIN unnest(day) AS days(day))select distinct cast(d.day as timestamp) as day,steth.total_supply_usd as steth,steth.total_supply as steth_in_eth,eth.total_supply_usd as eth,eth.total_supply as eth_eth,wbtc.total_supply_usd as wbtc,wbtc.total_supply_eth as wbtc_in_eth,usdc.total_supply_usd as usdc,usdc.total_supply_eth as usdc_in_eth,usdt.total_supply_usd as usdt,usdt.total_supply_eth as usdt_in_eth,dai.total_supply_usd as dai,dai.total_supply_eth as dai_in_eth,usds.total_supply_usd as usds,usds.total_supply_eth as usds_in_eth,reth.total_supply_usd as reth,reth.total_supply_eth as reth_in_eth,cbeth.total_supply_usd as cbeth,cbeth.total_supply_eth as cbeth_in_eth,weeth.total_supply_usd as weeth,weeth.total_supply_eth as weeth_in_eth,ezeth.total_supply_usd as ezeth,ezeth.total_supply_eth as ezeth_in_eth,rseth.total_supply_usd as rseth,rseth.total_supply_eth as rseth_in_eth,coalesce(steth.total_supply_usd, 0)/ (coalesce(steth.total_supply_usd,0) +coalesce(eth.total_supply_usd,0) + coalesce(wbtc.total_supply_usd,0) +coalesce(usdc.total_supply_usd,0) + coalesce(usdt.total_supply_usd,0) +coalesce(dai.total_supply_usd,0) + coalesce(usds.total_supply_usd,0) + coalesce(reth.total_supply_usd,0) +coalesce(cbeth.total_supply_usd,0) + coalesce(weeth.total_supply_usd, 0) +coalesce(ezeth.total_supply_usd, 0) + coalesce(rseth.total_supply_usd, 0)) as steth_rate_in_total,coalesce(steth.total_supply, 0)/ coalesce(eth.total_supply,0) as steth_to_eth,coalesce(eth.total_supply_usd, 0)/ (coalesce(steth.total_supply_usd,0) +coalesce(eth.total_supply_usd,0) + coalesce(wbtc.total_supply_usd,0) +coalesce(usdc.total_supply_usd,0) + coalesce(usdt.total_supply_usd,0) +coalesce(dai.total_supply_usd,0) + coalesce(reth.total_supply_usd,0) +coalesce(cbeth.total_supply_usd,0) + coalesce(weeth.total_supply_usd, 0) +coalesce(ezeth.total_supply_usd, 0) + coalesce(rseth.total_supply_usd, 0)) as eth_rate_in_total,