Query editor
with target_wallets as (select t.walletfrom unnest(array[0xf4880cb7289730e1d538366c4edc46a0fa7e9c03,0xc75e242000e7c61c8cdf1faf47814e8b2f0cda1b,0x3d0bc8c663cfa3f7389b1c69dd841ff5c3d1589f,0x05552564e81df4eff1c672f86a3cf6bca7224220,0xab503fc3047c7007d668574d9f10139dacac8daa,0xd1822486562d7b2672a1cf6a8254503430302a6d]) as t(wallet)),first_stake as (select"sender" as wallet,min(evt_block_time) as first_stake_timefrom lido_ethereum.steth_evt_Submittedwhere "sender" in (select wallet from target_wallets)and evt_block_time >= timestamp '2026-03-30 07:00:00'and evt_block_time < timestamp '2026-03-30 08:00:00'group by "sender")selectfs.wallet,max(tt.block_time) as last_inflow_time,date_diff('minute', max(tt.block_time), fs.first_stake_time) as minutes_before_stake,max(tt.value) / 1e18 as inflow_amount_eth,any_value(l.name) as inflow_from_label,any_value(l.category) as inflow_categoryfrom first_stake fsleft join ethereum.transactions tton tt."to" = fs.walletand tt.block_time < fs.first_stake_timeand tt.value > 0left join labels.addresses l on l.address = tt."from" and l.blockchain = 'ethereum'group by fs.wallet, fs.first_stake_timeorder by minutes_before_stake asc