(
(let $1 '('"AdvEngineID" (DataType 'Int16)))
(let $2 (DataType 'Uint64))
(let $3 '('('"_logical_id" '1710) '('"_id" '"cccea8b6-97e4a442-ed865fd0-16f6cdea") '('"_wide_channels" (StructType $1 '('_yql_agg_0 $2)))))
(let $4 (DqPhyStage '() (lambda '() (block '(
  (let $13 (KqpTable '"/local/test_db/olap_yatests/clickbench/hits" '"72075186224037897:8" '"" '1))
  (let $14 '('"AdvEngineID"))
  (let $15 (KqpBlockReadOlapTableRanges $13 (Void) $14 '() '() (lambda '($17) (block '(
    (let $18 '('neq '"AdvEngineID" (Int32 '0)))
    (return (TKqpOlapAgg (KqpOlapFilter $17 $18) '('('_yql_agg_0 '"count" '"*")) $14))
  )))))
  (let $16 (lambda '($19 $20 $21) (block '(
    (let $22 (BlockAsStruct '('"AdvEngineID" $19) '('_yql_agg_0 $20)))
    (return (BlockMember $22 '"AdvEngineID") (BlockMember $22 '_yql_agg_0) $21)
  ))))
  (return (FromFlow (WideMap $15 $16)))
))) $3))
(let $5 (DqCnHashShuffle (TDqOutput $4 '0) '('0)))
(let $6 (StructType $1 '('"cnt" $2)))
(let $7 '('('"_logical_id" '2096) '('"_id" '"c23b5830-5246f3b2-71dc482e-4f36d509") '('"_wide_channels" $6)))
(let $8 (DqPhyStage '($5) (lambda '($23) (block '(
  (let $24 (lambda '($35 $36) $35 $36))
  (let $25 (WideCombiner (ToFlow (WideFromBlocks $23)) '"" (lambda '($26 $27) $26) (lambda '($28 $29 $30) $30) (lambda '($31 $32 $33 $34) (AggrAdd $33 $34)) $24))
  (return (FromFlow (WideSort $25 '('('1 (Bool 'false))))))
))) $7))
(let $9 (DqCnMerge (TDqOutput $8 '0) '('('1 '"Desc"))))
(let $10 (DqPhyStage '($9) (lambda '($37) (FromFlow (NarrowMap (ToFlow $37) (lambda '($38 $39) (AsStruct '('"AdvEngineID" $38) '('"cnt" $39)))))) '('('"_logical_id" '2108) '('"_id" '"99e64b1c-bf5d186f-acaa4c17-355db0c6"))))
(let $11 '($4 $8 $10))
(let $12 (DqCnResult (TDqOutput $10 '0) '('"AdvEngineID" '"cnt")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $11 '($12) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $6) '0 '0)) '('('"type" '"query"))))
)
