(
(let $1 (DataType 'Uint64))
(let $2 '('('"_logical_id" '1617) '('"_id" '"c6e16550-cb94ba51-554c100a-76ee9887") '('"_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 '($10) (block '(
    (let $11 '('neq '"AdvEngineID" (Int32 '0)))
    (return (TKqpOlapAgg (KqpOlapFilter $10 $11) '('('_yql_agg_0 '"count" '"*")) '()))
  )))))
  (let $9 (lambda '($12 $13) (BlockMember (BlockAsStruct '('_yql_agg_0 $12)) '_yql_agg_0) $13))
  (return (WideFromBlocks (FromFlow (WideMap $8 $9))))
))) $2))
(let $4 (DqCnUnionAll (TDqOutput $3 '0)))
(let $5 (DqPhyStage '($4) (lambda '($14) (block '(
  (let $15 (Bool 'false))
  (let $16 (WideCondense1 (ToFlow $14) (lambda '($18) $18) (lambda '($19 $20) $15) (lambda '($21 $22) (AggrAdd $21 $22))))
  (let $17 (Condense (NarrowMap (Take $16 (Uint64 '1)) (lambda '($23) (AsStruct '('Count0 $23)))) (Nothing (OptionalType (StructType '('Count0 $1)))) (lambda '($24 $25) $15) (lambda '($26 $27) (Just $26))))
  (return (FromFlow (Map $17 (lambda '($28) (AsStruct '('"column0" (Coalesce (Member $28 'Count0) (Uint64 '0))))))))
))) '('('"_logical_id" '2274) '('"_id" '"d46d8308-39864ced-85439e21-8c7ad35e"))))
(let $6 (DqCnResult (TDqOutput $5 '0) '('"column0")))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($3 $5) '($6) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"column0" $1))) '0 '0)) '('('"type" '"query"))))
)
