Query editor
-- This query used incompatible data types from Dune SQL alpha and may need to be updated.-- More details can be found on https://dune.com/docs/query/dunesql-changes/SELECTcontract_address as pair, sum(cast(amount0In as double)) as total_0_in, avg(cast(amount0In as double)) as average_0_in, approx_percentile(cast(amount0In as double), 0.5) as average_0_in, max(cast(amount0In as double)) as max_0_in, min(cast(amount0In as double)) as min_0_in, count(*) as number_of_swaps, approx_distinct(sender) as unique_senders, arbitrary(evt_tx_hash) as random_example_hashFROM uniswap_v2_ethereum.Pair_evt_SwapWHERE evt_block_time > now() - interval '1' dayAND contract_address = 0xb4e16d0168e52d35cacd2c6185b44281ec28c9dcGROUP BY 1-- HAVING sum(cast(amount0In as double)) > 10e30-- ORDER BY 2 DESC