Query editor
WITH src AS (SELECTtry_cast(date_parse(-- normalize month typos then parse "Month YYYY"regexp_replace(trim(cast("date" AS varchar)),'(?i)\bocotber\b','October'),'%M %Y') AS date) AS month,try_cast(regexp_replace(trim(cast(morpho AS varchar)), '[^0-9\.\-]', '') AS double) AS morpho_val,try_cast(regexp_replace(trim(cast(euler AS varchar)), '[^0-9\.\-]', '') AS double) AS euler_val,try_cast(regexp_replace(trim(cast(yearn AS varchar)), '[^0-9\.\-]', '') AS double) AS yearn_val,try_cast(regexp_replace(trim(cast(beefy AS varchar)), '[^0-9\.\-]', '') AS double) AS beefy_valFROM dune.keyrock.dataset_onchain_vault_data___sheet1WHERE "date" IS NOT NULL)SELECTs.month,u.protocol,coalesce(u.value, 0) AS tvl_usdFROM src sCROSS JOIN UNNEST(ARRAY['Morpho', 'Euler', 'Yearn', 'Beefy'],ARRAY[s.morpho_val, s.euler_val, s.yearn_val, s.beefy_val]) AS u(protocol, value)WHERE s.month IS NOT NULLORDER BY s.month, u.protocol;