select
date_trunc('day',block_timestamp
) as date,
address_name as swap_to,
count(address_name) as count_of_swap_to from solana.fact_swaps,solana.dim_labels
where address=swap_to_mint and block_timestamp >= '2022-01-01' and swap_program='raydium v4'
group by 1 , 2
HAVING COUNT(address_name) > 500
order by 1