(
(let $1 (DataType 'Uint64))
(let $2 '('('"_logical_id" '1618) '('"_id" '"46d2517d-4de380bb-467fddfb-533174aa") '('"_wide_channels" (StructType '('_yql_agg_0 $1)))))
(let $3 (DqPhyStage '() (lambda '() (block '(
  (let $7 (KqpTable '"/local/test_db/olap_yatests/clickbench/hits" '"72075186224037897:8" '"" '1))
  (let $8 (KqpBlockReadOlapTableRanges $7 (Void) '('"AdvEngineID") '() '() (lambda '($9) (block '(
    (let $10 '('neq '"AdvEngineID" (Int32 '0)))
    (return (TKqpOlapAgg (KqpOlapFilter $9 $10) '('('_yql_agg_0 '"count" '"*")) '()))
  )))))
  (return (WideFromBlocks (FromFlow $8)))
))) $2))
(let $4 (DqCnUnionAll (TDqOutput $3 '0)))
(let $5 (DqPhyStage '($4) (lambda '($11) (block '(
  (let $12 (Bool 'false))
  (let $13 (WideCondense1 (ToFlow $11) (lambda '($15) $15) (lambda '($16 $17) $12) (lambda '($18 $19) (AggrAdd $18 $19))))
  (let $14 (Condense (NarrowMap (Take $13 (Uint64 '1)) (lambda '($20) (AsStruct '('Count0 $20)))) (Nothing (OptionalType (StructType '('Count0 $1)))) (lambda '($21 $22) $12) (lambda '($23 $24) (Just $23))))
  (return (FromFlow (Map $14 (lambda '($25) (AsStruct '('"column0" (Coalesce (Member $25 'Count0) (Uint64 '0))))))))
))) '('('"_logical_id" '2275) '('"_id" '"ce61310f-d59f8ec4-28260a2e-d735cd9a"))))
(let $6 (DqCnResult (TDqOutput $5 '0) '('"column0")))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($3 $5) '($6) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"column0" $1))) '0 '0)) '('('"type" '"query"))))
)
