Query editor
with vesting_contracts as (SELECT cast(value as DOUBLE)/1e18 as value, "to" as vesting_recipient, contract_address FROM erc20_{{chain}}.evt_Transferwhere "from" = {{vesting_contract_1}}or "from" = {{vesting_contract_2}}and contract_address = {{token addy}}),amount_received as (SELECT sum(value) as value, cast(vesting_recipient as VARCHAR) as vesting_recipient FROM vesting_contractsGROUP BY 2),prices as (SELECT price FROM prices.usd_latestwhere contract_address = {{token addy}})SELECT value * (SELECT price from prices) as amount_usd, value as token_amount, vesting_recipient,'<a href=https://debank.com/profile/' || cast(vesting_recipient as varchar) || ' target=_blank>Debank</a>' as Debank FROM vesting_contracts