Query editor
with status as (selectt.to_owner,CASE WHEN MIN(s.block_time) < MIN(t.block_time) THEN 'Old' ELSE 'New' END AS MintStatusFROM tokens_solana.transfers AS tLEFT JOIN raydium_v4.trades AS sON t.to_owner = s.trader_idwhere t.token_mint_address = 'RUpbmGF6p42AAeN1QvhFReZejQry1cLkE1PUYFVVpnL'and t.from_owner = '5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1'GROUP BYt.to_owner)select MintStatus, count (to_owner) as total from statusgroup by MintStatus