Query editor
select block_time, title,case when cast(json_array_get(scores, 0) as double) > cast(json_array_get(scores, 1) as double) then 'succeeded'when length > 3 or title = 'Final test' then 'successed'else 'defeated' end as status,votes, scores_total,if(length <= 3 and title != 'Final test', round(cast(json_array_get(scores, 0) as double), 2), 0) as "For",if(length <= 3 and title != 'Final test', round(cast(json_array_get(scores, 1) as double), 2), 0) as Against,if(length <= 3 and title != 'Final test', round(cast(json_array_get(scores, 2) as double), 2), 0) as Abstain,if(length > 3 or title = 'Final test', round(scores_total, 2), 0) as Option, linkfrom(select from_unixtime(start) as block_time, title, type, votes,delegation, quorum, json_parse(choices) as choices, json_parse(scores) as scores, json_array_length(json_parse(scores)) as length,round(scores_total, 2) as scores_total, '<a href=' || discussion || '>' || '[ 🔗 ]' || '</a>' AS linkfrom snapshot.proposalswhere space = 'opcollective.eth')order by 1 desc