Query editor
WITH proposals AS (SELECTCOUNT(DISTINCT proposalId) AS proposals_countFROM "query_4282303"), delegate_votes AS (SELECTvoter AS delegate,COUNT(voter) AS vote_count,proposals.proposals_countFROM "query_4282303"CROSS JOIN proposalsGROUP BYvoter,proposals.proposals_count)SELECTdelegate,(TRY_CAST(vote_count AS REAL) / proposals_count) AS on_chain_value,vote_count,proposals_countFROM delegate_votes