Query editor
SELECTh.hour,regexp_extract(m.question, 'Will (.*?) win') AS candidate,h.price * 100 AS implied_probability_pctFROM polymarket_polygon.market_prices_hourly hJOIN polymarket_polygon.market_details mON CAST(h.condition_id AS VARCHAR) = CAST(m.condition_id AS VARCHAR)AND CAST(h.token_id AS VARCHAR) = CAST(m.token_id AS VARCHAR)WHERE m.event_market_name = 'Nigerian Presidential Election Winner'AND NOT regexp_like(m.question, 'Candidate [A-Z] win')AND m.question NOT LIKE '%Other%'AND m.token_outcome = 'Yes'AND h.hour >= NOW() - INTERVAL '90' DAYORDER BY h.hour