Query editor
withbase as (SELECTdistinctdate_trunc('day', call.block_time) as day, tx_signer as userFROM solana.instruction_calls callWHERE call.executing_account = 'TitanLozLMhczcwrioEguG2aAmiATAPXdYpBg3DbeKK'), new_old as (SELECTday, case when new_old = 1 then 'new'else 'old' endas user_type, count(*) as unique_addressesFROM (SELECTday, user, row_number() over (partition by user order by day asc) as new_oldFROM base) bGROUP BY 1,2)SELECT * FROM new_old