Query editor
-- --What is the number of pairs created containing tokens USDC and/or WETH-- -- weth = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2-- -- usdc = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48-- select count(pair) as Number_of_pair_created-- from uniswap_v2_ethereum.Factory_evt_PairCreated-- where evt_block_time between date '{{begin date range}}' and date '{{end date range}}'-- -- and token0 IN (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48)-- -- or token1 IN (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48)with p as(select *from uniswap_v2_ethereum.Factory_evt_PairCreatedwhere-- evt_block_time between date '{{begin date range}}' and date '{{end date range}}'token0 IN (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48)and token1 IN (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48))selectevt_block_time,pair,token0,token1,t0.symbol as t0_symbol,t1.symbol as t1_symbolfrom pjoin tokens.erc20 t0on p.token0 = t0.contract_addressleft join tokens.erc20 t1on p.token1 = t1.contract_address