Query editor
WITH Supply_Earning_Yield AS (SELECTevt_block_time,(rebasingCredits / rebasingCreditsPerToken) AS "Supply Earning Yield ($)"FROMsperax_arbitrum.USDsL2_evt_TotalSupplyUpdatedGROUP BYevt_block_time, rebasingCredits, rebasingCreditsPerTokenORDER BYevt_block_time DESC),USDs_Rebase_Amount AS (SELECTevt_block_time,rebaseAmt / 1e18 AS USDs_Rebase_AmountFROMsperax_arbitrum.VaultCore_evt_RebasedUSDsGROUP BYevt_block_time, rebaseAmtORDER BYevt_block_time DESC),totalSupply AS (SELECTt.evt_block_time AS "Date",t.totalSupply / 1e18 AS "Total Supply (USDs)",(t.totalSupply / 1e18 * pr.price) AS "Total Supply ($)"FROMsperax_arbitrum.USDsL2_evt_TotalSupplyUpdated AS tLEFT JOINprices.usd AS prON pr.symbol = 'USDs'AND pr.blockchain = 'arbitrum'AND DATE_TRUNC('minute', t.evt_block_time) = pr.minuteORDER BYt.evt_block_time DESC)SELECTt."Date",t."Total Supply (USDs)",t."Total Supply ($)",s."Supply Earning Yield ($)"FROMtotalSupply AS tLEFT JOINSupply_Earning_Yield AS sON t."Date" = s.evt_block_timeORDER BYt."Date" DESC;