Query editor
WITHmarkets AS (SELECTfixedProductMarketMakerFROMpolymarketfactory_polygon.FixedProductMarketMakerFactory_evt_FixedProductMarketMakerCreationWHEREcollateralToken = 0x2791bca1f2de4661ed88a30c99a7a9449aa84174),orders_filled as (selectcasewhen md.question is not null then md.questionelse md2.questionend as question,casewhen md.question_id is not null then md.question_idelse md2.question_idend as question_id,casewhen md.slug is not null then md.slugelse md2.slugend as slug,casewhen md.icon is not null then md.iconelse md2.iconend as slug,casewhen md.description is not null then md.descriptionelse md2.descriptionend as description,casewhen md.new is not null then md.newelse md2.newend as new,casewhen md.archived is not null then md.archivedelse md2.archivedend as archived,casewhen md.restricted is not null then md.restrictedelse md2.restrictedend as restricted,casewhen md.neg_risk is not null then md.neg_riskelse md2.neg_riskend as neg_risk,casewhen md.outcome is not null then md.outcomeelse md2.outcomeend as outcome,casewhen md.clob_token_id is not null then md.clob_token_idelse md2.clob_token_idend as clob_token_id,casewhen md.event_title is not null then md.event_titleelse md2.event_titleend as event_title,case