select
distinct EVENT_INPUTS:proposalId as proposal,
sum(EVENT_INPUTS:votes) as token_minted,
count(distinct EVENT_INPUTS:voter) as voter
from ethereum.core.fact_event_logs
where EVENT_NAME ilike '%VoteCast'
and ORIGIN_TO_ADDRESS='0x6f3e6272a167e8accb32072d08e0957f9c79223d'
and ORIGIN_FUNCTION_SIGNATURE in('0x56781388','0x7b3c71d3')
group by 1
order by 2 desc