(
(let $1 (DataSource '"yt" '"/Root/plato"))
(let $2 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
(let $3 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $2)))
(let $4 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
(let $5 (YtStat '('Id '"Input") '('RecordsCount '"14") '('DataSize '"614") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $6 (YtTable '"Input" $3 $4 $5 '() (Void) (Void) '"/Root/plato"))
(let $7 (lambda '($46 $47) $46))
(let $8 (DataType 'Uint64))
(let $9 (lambda '($48 $49 $50) (SafeCast (Size $50) $8)))
(let $10 (lambda '($51 $52 $53 $54) (AggrAdd (SafeCast (Size $53) $8) $54)))
(let $11 (lambda '($55 $56) $56 $55))
(let $12 '('_yql_agg_0 $8))
(let $13 (DataType 'String))
(let $14 '('('"_logical_id" '3147) '('"_id" '"37553f03-7d487508-609163ac-bbe167b5") '('"_wide_channels" (StructType $12 '('"key" $13)))))
(let $15 (DqPhyStage '() (lambda '() (block '(
  (let $45 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"value") (Void) (Void))) '()))))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $45 '()))) '-1073741824 $7 $9 $10 $11))
))) $14))
(let $16 '('1))
(let $17 (DqCnHashShuffle (TDqOutput $15 '0) $16 '0 '"HashV2"))
(let $18 (lambda '($62 $63) $63))
(let $19 '('Auto 'Many))
(let $20 (lambda '($69 $70) $69 $70))
(let $21 (lambda '($71 $72 $73 $74) (AggrNotEquals $72 $74)))
(let $22 (lambda '($75 $76 $77 $78) (AggrAdd $75 $77) $78))
(let $23 (OptionalType $13))
(let $24 (Nothing $23))
(let $25 '('"_partition_mode" '"aggregate"))
(let $26 (StructType '('"column0" $8) '('"key" $23) '('"subkey" $23)))
(let $27 '('"_wide_channels" $26))
(let $28 '('('"_logical_id" '3333) '('"_id" '"50f61a24-5a8fa4c6-ea8b0fe8-84b870fd") $25 $27))
(let $29 (DqPhyStage '($17) (lambda '($57) (block '(
  (let $58 (NarrowSqueezeToDict (ToFlow (WideFromBlocks $57)) $18 (lambda '($64 $65) (AsStruct '('_yql_agg_0 $64) '('"key" $65))) $19))
  (let $59 (lambda '($68) (Member $68 '_yql_agg_0) (Member $68 '"key")))
  (let $60 (WideCondense1 (ExpandMap (OrderedFlatMap $58 (lambda '($66) (OrderedFlatMap (DictPayloads $66) (lambda '($67) $67)))) $59) $20 $21 $22))
  (let $61 (lambda '($79 $80) $79 (Just $80) $24))
  (return (FromFlow (WideMap $60 $61)))
))) $28))
(let $30 '('('"_logical_id" '3204) '('"_id" '"15991a13-18e88ec9-e238f2aa-82d29887") '('"_wide_channels" (StructType $12 '('"subkey" $13)))))
(let $31 (DqPhyStage '() (lambda '() (block '(
  (let $81 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"subkey" '"value") (Void) (Void))) '()))))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $81 '()))) '-1073741824 $7 $9 $10 $11))
))) $30))
(let $32 (DqCnHashShuffle (TDqOutput $31 '0) $16 '0 '"HashV2"))
(let $33 '('('"_logical_id" '3379) '('"_id" '"64885db1-2e69d0de-c4f46316-fffb3719") $25 $27))
(let $34 (DqPhyStage '($32) (lambda '($82) (block '(
  (let $83 (NarrowSqueezeToDict (ToFlow (WideFromBlocks $82)) $18 (lambda '($87 $88) (AsStruct '('_yql_agg_0 $87) '('"subkey" $88))) $19))
  (let $84 (lambda '($91) (Member $91 '_yql_agg_0) (Member $91 '"subkey")))
  (let $85 (WideCondense1 (ExpandMap (OrderedFlatMap $83 (lambda '($89) (OrderedFlatMap (DictPayloads $89) (lambda '($90) $90)))) $84) $20 $21 $22))
  (let $86 (lambda '($92 $93) $92 $24 (Just $93)))
  (return (FromFlow (WideMap $85 $86)))
))) $33))
(let $35 (DqCnParallelUnionAll (TDqOutput $29 '0)))
(let $36 (DqCnParallelUnionAll (TDqOutput $34 '0)))
(let $37 (lambda '($99 $100 $101) (AsStruct '('"column0" $99) '('"key" $100) '('"subkey" $101))))
(let $38 '('('"_logical_id" '3694) '('"_id" '"474d3204-64cd04d9-65096aaf-e6929c19") $27))
(let $39 (DqPhyStage '($35 $36) (lambda '($94 $95) (block '(
  (let $96 (Bool 'true))
  (let $97 (Sort (Extend (NarrowMap (ToFlow $94) $37) (NarrowMap (ToFlow $95) $37)) '($96 $96) (lambda '($102) '((Member $102 '"key") (Member $102 '"subkey")))))
  (let $98 (lambda '($103) (Member $103 '"column0") (Member $103 '"key") (Member $103 '"subkey")))
  (return (FromFlow (ExpandMap $97 $98)))
))) $38))
(let $40 (DqCnMerge (TDqOutput $39 '0) '('('1 '"Asc") '('"2" '"Asc"))))
(let $41 (DqPhyStage '($40) (lambda '($104) (FromFlow (NarrowMap (ToFlow $104) $37))) '('('"_logical_id" '3706) '('"_id" '"e7573184-bb786ff5-28ac189a-7643d8c8"))))
(let $42 '($15 $29 $31 $34 $39 $41))
(let $43 '('"column0" '"key" '"subkey"))
(let $44 (DqCnResult (TDqOutput $41 '0) $43))
(return (KqpPhysicalQuery '((KqpPhysicalTx $42 '($44) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $26) '0 '0)) '('('"type" '"query"))))
)
