Query editor
SELECTdate_trunc('{{Time interval}}', block_time) as time,AVG(gas_price)/1e9 AS avg_gas_price,approx_percentile(gas_price/1e9, 0.5) AS median_gas_priceFROM bnb.transactionswhere block_time >= now() - interval '{{Trading Num Days}}' DAYgroup by 1