Query editor
SELECTYEAR(time) AS year,SUM(historical_value) AS total_historical_value,SUM(current_value) AS total_current_value,(SUM(current_value) - SUM(historical_value)) / SUM(historical_value) * 100 AS percentage_difference,COUNT(donor_name) AS total_donors,COUNT(DISTINCT donor_name) AS unique_donors,AVG(historical_value) AS avg_donation,APPROX_PERCENTILE(historical_value, 0.5) AS median_donation,MAX(historical_value) AS max_donationFROM (dune.protocolguild.result_individual_donations__main-- Individual Donations - https://dune.com/queries/6364630)GROUP BY YEAR(time)ORDER BY YEAR(time) DESC