with query_table1 AS
(select swap_program as swap_name,
block_timestamp::date AS date_time,
sum(swap_from_amount) AS total_amount
from flipside_prod_db.algorand.swaps
where swap_from_asset_id = 386192725
group by date_time,swap_name
order by date_time)
select total_amount, swap_name, date_time
from query_table1