select date_trunc(day,block_timestamp) as date, count(distinct from_address) as total_count, LP_action
from flipside_prod_db.thorchain.liquidity_actions
-- where LP_ACTION = 'add_liquidity'
--and
where block_timestamp >= CURRENT_DATE - 90
group by 1,3
order by 1 desc