Query editor
withexcluded_bets as (select *from (values('0xf9548be470a4e130c90cea8b179fcd66d2972ac7_442081','polygon','oracle key compromise 2026-10-06: self-resolved at odds 245050, $245 049 taken from the pool and later recovered'),('0x0e00e6ffcb5e207b800eec9e02999d1fd9e448f2_6661','gnosis','oracle key compromise 2026-10-06: self-resolved at odds 692, $691 taken from the pool and later recovered')) as t(bet_id, chain, reason)),merged as (selectbet_time,resolve_time,bet_id,bettor,usd_amount,usd_ggr,is_freebet,status != 'Accepted' as is_settledfrom dune.azuro.result_ordinars_combos_resolvedwhere bet_id not in (select bet_id from excluded_bets)union allselectbet_time,resolve_time,bet_id,bettor,usd_amount,usd_ggr,is_freebet,bet_status != 'accepted' as is_settledfrom query_5092706 -- live: matview frozen since 2026-10-08 (storage over plan limit)where bet_id not in (select bet_id from excluded_bets)),placed as (selectdate_trunc('{{Agg Period Prediction Stats}}', bet_time) as period,count(distinct bet_id) as bets,count(distinct bettor) as bettors,sum(usd_amount) filter (where not is_freebet) as volume,sum(usd_amount) filter (where not is_freebet)/ nullif(count(distinct case when not is_freebet then bet_id end), 0) as avg_bet,approx_percentile(case when not is_freebet then usd_amount end, 0.5) as median_betfrom mergedgroup by 1),settled as (select