Query editor
selectb.dt, concat(b.blockchain, '-', b.token) as token, sum(b.amount*b.price_usd) as sp_amountfrom dune.sparkdotfi.spark_xr_ar_rewards_daily_eoh bwhere b.token in ('sUSDS', 'sUSDC')and b.referral_type = 'Spark referrals'group by1, 2order by1 desc, 2 asc