Query editor
-- part of a query repo-- query name: ECB Bitcoin Index (Materialized View)-- query link: https://dune.com/queries/3357849-- Materialized in dune.adcv.result_ecb_bitcoin_index-- Testing push from gh | Test 3WITHpriceBTC AS (SELECT timestamp as period,price as price_BTCFROM prices.daywhere blockchain = 'bitcoin' and symbol = 'BTC'and contract_address = 0x0000000000000000000000000000000000000000),rangeYvesMersch AS ( -- https://x.com/ecb/status/961557125771288576?s=20SELECT periodFROM unnest(sequence(CAST('2018-02-18' AS TIMESTAMP),CAST(NOW() as timestamp),interval '1' day)) as s(period)),rangeBenoitCoeure AS ( -- https://x.com/ecb/status/1063045037813051392?s=20SELECT periodFROM unnest(sequence(CAST('2018-11-15' AS TIMESTAMP),CAST(NOW() as timestamp),interval '1' day)) as s(period)),rangePeterPraet AS ( -- https://x.com/ecb/status/1105489733654851591?s=20SELECT periodFROM unnest(sequence(CAST('2019-03-12' AS TIMESTAMP),CAST(NOW() as timestamp),interval '1' day)) as s(period)),rangeFabioPanetta AS ( -- https://x.com/ecb/status/1469244896741666819?s=20SELECT periodFROM unnest(sequence(CAST('2021-12-10' AS TIMESTAMP),CAST(NOW() as timestamp),interval '1' day)) as s(period)),rangeJuergenSchaff AS ( -- https://x.com/ecb/status/1597894360510922752?s=20SELECT periodFROM unnest(sequence(