Query editor
SELECTd.token,d.blockchain,v.current_price,d.quantity AS qty_donated,v.qty_vesting,v.qty_vested,COALESCE(COALESCE(v.qty_vested, 0) / NULLIF(COALESCE(d.quantity, 0), 0), 0) AS perc_vested,d.quantity * v.current_price AS donated_value,v.vesting_value,v.vested_valueFROM (SELECTtoken,blockchain,SUM(quantity) AS quantityFROM (dune.protocolguild.result_individual_donations__main-- Individual Donations https://dune.com/queries/6364630)GROUP BY token, blockchain) AS dLEFT JOIN (SELECTtoken,blockchain,MIN(current_price) AS current_price,SUM(tokens_vesting) AS qty_vesting,SUM(tokens_vested) AS qty_vested,SUM(vesting_value) AS vesting_value,SUM(vested_value) AS vested_valueFROM (dune.protocolguild.result_vesting_streams__main-- Vesting Streams https://dune.com/queries/6366431)GROUP BY token, blockchain) AS v ON d.token = v.token AND d.blockchain = v.blockchainORDER BY v.vesting_value DESC