(
(let $1 (Uint64 '1))
(let $2 (Bool 'false))
(let $3 (lambda '($25) $25))
(let $4 (DataType 'Uint64))
(let $5 '('('"_logical_id" '2326) '('"_id" '"7334029e-6056d0e4-c22b3b8d-d591512d") '('"_wide_channels" (StructType '('_yql_agg_0 $4)))))
(let $6 (DqPhyStage '() (lambda '() (block '(
  (let $11 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $12 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $11)))
  (let $13 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $14 (YtStat '('Id '"Input") '('RecordsCount '4) '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $15 (YtTable '"Input" $12 $13 $14 '() (Void) (Void) '"/Root/plato"))
  (let $16 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $15 '('"key") (Void) (Void))) '()))))
  (let $17 (Condense1 (NarrowMap (WideFilter (DqReadWideWrap $16 '()) (lambda '($18) (Or (== $18 (String '"023")) (== $18 (String '"037")) (== $18 (String '"075"))))) (lambda '($19) (AsStruct))) (lambda '($20) $1) (lambda '($21 $22) $2) (lambda '($23 $24) (Inc $24))))
  (return (FromFlow (ExpandMap $17 $3)))
))) $5))
(let $7 (DqCnUnionAll (TDqOutput $6 '0)))
(let $8 (DataType 'Double))
(let $9 (DqPhyStage '($7) (lambda '($26) (block '(
  (let $27 (WideCondense1 (ToFlow $26) $3 (lambda '($29 $30) $2) (lambda '($31 $32) (AggrAdd $31 $32))))
  (let $28 (Condense (NarrowMap (Take $27 $1) (lambda '($33) (AsStruct '('Count0 $33)))) (Nothing (OptionalType (StructType '('Count0 $4)))) (lambda '($34 $35) $2) (lambda '($36 $37) (Just $36))))
  (return (FromFlow (Map $28 (lambda '($38) (AsStruct '('"cnt" (/ (Just (Coalesce (Member $38 'Count0) (Uint64 '0))) (Just (SafeCast (Uint64 '4) $8)))))))))
))) '('('"_logical_id" '3354) '('"_id" '"63c73bc8-de3fba65-2bffef65-3b02a206"))))
(let $10 (DqCnResult (TDqOutput $9 '0) '('"cnt")))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($6 $9) '($10) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"cnt" (OptionalType $8)))) '0 '0)) '('('"type" '"query"))))
)
