select date_trunc('year',block_timestamp) as "Date",
round(avg(fee/pow(10,6)),4) as "Avg",
round(median(fee/pow(10,6)),4) as "Median",
round(sum(fee/pow(10,6)),2) as "Total Fee"
from axelar.core.fact_transactions
where fee_denom='uaxl' and tx_succeeded='true'
group by 1
order by 1