select --s.block_timestamp::date as fecha,
case
when s.swap_from_asset_id != 0 then a.asset_name
else 'ALGO'
end as token_from,
count (tx_group_id) as swaps,
sum(swap_to_amount) as volume
from algorand.swaps s
left join algorand.asset a
on s.swap_from_asset_id = a.asset_id
where swap_to_asset_id = 694432641
group by 1--,2