Query editor
WITH latest AS (SELECT max(dt) snapshot_at FROM dune.steakhouse.result_morpho_vaults_data_union WHERE dt >= current_date - INTERVAL '7' DAY AND dt <= current_date AND lower(curator) LIKE '%steakhouse%'),daily AS (SELECT u.dt,u.blockchain,u.vault_address,max(u.vault_name) vault_name,sum(u.supply_usd) net_deposits_usdFROM dune.steakhouse.result_morpho_vaults_data_union u CROSS JOIN latest lWHERE u.dt=l.snapshot_at AND u.dt >= current_date - INTERVAL '7' DAY AND lower(u.curator) LIKE '%steakhouse%'GROUP BY 1,2,3)SELECT row_number() OVER (ORDER BY net_deposits_usd DESC) current_rank,dt snapshot_at,blockchain,vault_address,vault_name,net_deposits_usd,vault_address IN (0xbeef010f9cb27031ad51e3333f9af9c6b1228183,0xbeefe94c8ad530842bfe7d8b397938ffc1cb83b2,0xbeef01735c132ada46aa9aa4c54623caa92a64cb,0xbeef0e0834849acc03f0089f01f4f1eeb06873c9,0xbeeff033f34c046626b8d0a041844c5d1a5409dd,0xbeeff2490feffa212fac2f6553682c219e6a8845,0xbeef0786756810478b88982de00f3cd7fdb8e7c7) included_in_dashboardFROM daily ORDER BY current_rank LIMIT 15