Query editor
SELECTgrant_source, grant_blockchain, DATE_PARSE(gc.grant_date, '%m/%d/%Y') as grant_date, grant_name, grant_round, p.symbol as grant_token, 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')WHERE grant_blockchain = 'arbitrum'GROUP BY 1, 2, 3, 4, 5, 6ORDER BY 3 desc