with voters_count_comparison as (
select proposal_id,
sum (amount) as total_amount_deposited,
case when proposal_id = '362' then 'Proposal #362' else 'Other Proposals' end as comparison_of_proposals
from osmosis.core.fact_governance_proposal_deposits
where proposal_id::numeric >= '300'
and proposal_id::numeric <= '365'
and tx_status = 'SUCCEEDED'
group by proposal_id, 3
order by total_amount_deposited desc
)
select * from voters_count_comparison