(
(let $1 (Bool 'false))
(let $2 (lambda '($30) $30))
(let $3 (DataType 'Uint64))
(let $4 '('('"_logical_id" '977) '('"_id" '"46709b4a-e2d5db6a-5ceeff51-73fc02b7") '('"_wide_channels" (StructType '('_yql_agg_0 $3)))))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $14 '@@["StructType";[["key";["DataType";"Uint64"]];["subkey";["DataType";"Uint64"]]]]@@)
  (let $15 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $14)))
  (let $16 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $17 (YtStat '('Id '"Input") '('RecordsCount '"3") '('DataSize '"78") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $18 (YtTable '"Input" $15 $16 $17 '() (Void) (Void) '"/Root/plato"))
  (let $19 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $18 '('"key" '"subkey") (Void) (Void))) '()))))
  (let $20 (Condense1 (NarrowMap (WideFilter (DqReadWideWrap $19 '()) (lambda '($21 $22) (!= $22 (Int32 '"5")))) (lambda '($23 $24) (AsStruct '('"key" $23)))) (lambda '($25) (Member $25 '"key")) (lambda '($26 $27) $1) (lambda '($28 $29) (AggrAdd (Member $28 '"key") $29))))
  (return (FromFlow (ExpandMap $20 $2)))
))) $4))
(let $6 (DqCnUnionAll (TDqOutput $5 '0)))
(let $7 (StructType '('Sum0 $3)))
(let $8 '('('"_logical_id" '1938) '('"_id" '"50e9ca9c-1edcbb77-3be143f7-26b785ab") '('"_partition_mode" '"aggregate") '('"_wide_channels" $7)))
(let $9 (DqPhyStage '($6) (lambda '($31) (FromFlow (WideCondense1 (ToFlow $31) $2 (lambda '($32 $33) $1) (lambda '($34 $35) (AggrAdd $34 $35))))) $8))
(let $10 (DqCnUnionAll (TDqOutput $9 '0)))
(let $11 (DqPhyStage '($10) (lambda '($36) (block '(
  (let $37 (Condense (NarrowMap (ToFlow $36) (lambda '($38) (AsStruct '('Sum0 $38)))) (List (ListType $7)) (lambda '($39 $40) $1) (lambda '($41 $42) (AsList $41))))
  (return (FromFlow (Map $37 (lambda '($43) (AsStruct '('"column0" (Member (ToOptional $43) 'Sum0)))))))
))) '('('"_logical_id" '1992) '('"_id" '"21e1195-71369da7-bdf40def-1632ed2a"))))
(let $12 '($5 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '('"column0")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"column0" (OptionalType $3)))) '0 '0)) '('('"type" '"query"))))
)
