Query editor
--Error: Query is too long for wand tools.--Try shortening query to try again.WITH cETH AS (SELECTDATE_TRUNC('week', "call_block_time") AS week,("output_0") / TRY_CAST(1e28 AS DOUBLE) AS ExchangeRate,1 AS currencyIDFROM compound_v2_ethereum.cEther_call_exchangeRateStoredWHERE"contract_address" = 0x4ddc2d193948926d02f9b1fe9e1daa0718270ed5ORDER BY"call_block_time" DESCLIMIT 1), cUSDC AS (SELECTDATE_TRUNC('week', "call_block_time") AS week,("output_0") / TRY_CAST(1e16 AS DOUBLE) AS ExchangeRate,3 AS currencyIDFROM compound_v2_ethereum.cErc20_call_exchangeRateStoredWHERE"contract_address" = 0x39aa39c021dfbae8fac545936693ac917d5e7563ORDER BY"call_block_time" DESCLIMIT 1), cDAI AS (SELECTDATE_TRUNC('week', "call_block_time") AS week,("output_0") / TRY_CAST(1e28 AS DOUBLE) AS ExchangeRate,2 AS currencyIDFROM compound_v2_ethereum.CErc20Delegator_call_exchangeRateStoredWHERE"contract_address" = 0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643ORDER BY"call_block_time" DESCLIMIT 1), cWBTC AS (SELECTDATE_TRUNC('week', "call_block_time") AS week,("output_0") / TRY_CAST(1e18 AS DOUBLE) AS ExchangeRate,4 AS currencyIDFROM compound_v2_ethereum.CErc20Delegator_call_exchangeRateStoredWHERE"contract_address" = 0xccf4429db6322d5c611ee964527d42e5d685dd6aORDER BY"call_block_time" DESCLIMIT 1), exchangeRate AS (SELECT*FROM cETHUNIONSELECT