Query editor
with all_tokens as (SELECTtoken_bought_address,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 1UNIONSELECTtoken_sold_address,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)SELECTAVG(lifespan) as average_token_lifespanFROM all_tokensWHERE lifespan > 0AND trades > 10