Query editor
SELECTgrant_source-- , grant_blockchain, count(distinct grant_name || cast(grant_round as varchar)) as grant_rounds, sum(grant_amount) as grant_amount, sum(grant_amount*p.price) as grant_amount_usd, count(distinct grantee) as grantees, approx_percentile(grant_amount*p.price, 0.5) as median_grant_amount_usdFROM dune.cryptodatabytes.dataset_evm_grants gcLEFT JOIN prices.usd p ON p.blockchain = gc.grant_blockchainand p.contract_address = gc.grant_token_addressand p.minute = DATE_PARSE(gc.grant_date, '%m/%d/%Y')GROUP BY grant_source --, grant_blockchainORDER BY grant_amount_usd desc