Query editor
with all_tokens as (SELECTtoken_bought_address as token_address,blockchain,date_diff('day', min(block_time), max(block_time)) as lifespan,COUNT(DISTINCT tx_hash) as tradesFROM dex.tradesWHERE lower(project) LIKE 'uniswap%'GROUP BY 1,2UNIONSELECTtoken_sold_address as token_address,blockchain,date_diff('day', min(block_time), max(block_time)) as lifespan,COUNT(DISTINCT tx_hash) as tradesFROM dex.tradesWHERE lower(project) LIKE 'uniswap%'GROUP BY 1,2)SELECTblockchain,AVG(lifespan) as average_token_lifespanFROM all_tokensWHERE lifespan > 0AND trades > 10GROUP BY 1