Query editor
WITH title AS(SELECT key, cast(token_id as UINT256) as token_id, value as TitleFROM reservoir.token_attributes tWHERE collection_id = cast(0x746db7b1728af413c4e2b98216c6171b2fc9d00e as varchar)AND key = 'Title'AND value = '{{Title}}'),transaction AS(SELECT block_time, cast(token_id as UINT256) as token_id, trade_category, tx_hash, amount_originalFROM nft.tradesWHERE nft_contract_address = 0x746db7b1728af413c4e2b98216c6171b2fc9d00e)SELECT sum(amount_original) as Total, avg(amount_original) as average_price, max(amount_original) as max_price, min(amount_original) as min_price, count(block_time) as nb_salesFROM transaction qINNER JOIN title t ON t.token_id = q.token_id