(
(let $1 '('"key" '"value"))
(let $2 (DataType 'String))
(let $3 (ListType $2))
(let $4 '('"key" $2))
(let $5 '('('"_logical_id" '1890) '('"_id" '"4da8f3f7-ed94c669-8748a07e-f81914a9") '('"_wide_channels" (StructType '('_yql_agg_0 $3) $4))))
(let $6 (DqPhyStage '() (lambda '() (block '(
  (let $16 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $17 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $16)))
  (let $18 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $19 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $20 (YtTable '"Input" $17 $18 $19 '() (Void) (Void) '"/Root/plato"))
  (let $21 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $20 $1 (Void) (Void))) '()))))
  (let $22 (lambda '($32 $33) $33 $32))
  (return (WideFromBlocks (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $21 '()))) '-1073741824 (lambda '($23 $24) $23) (lambda '($25 $26 $27) (AsList $27)) (lambda '($28 $29 $30 $31) (Insert $31 $30)) $22)))
))) $5))
(let $7 (DqCnHashShuffle (TDqOutput $6 '0) '('1) '0 '"HashV2"))
(let $8 (OptionalType (DataType 'Json)))
(let $9 (StructType $4 '('"value" $8)))
(let $10 '('('"_logical_id" '2138) '('"_id" '"116f0e96-bf78627e-a717ad62-3d96e91e") '('"_wide_channels" $9)))
(let $11 (DqPhyStage '($7) (lambda '($34) (block '(
  (let $35 (NarrowSqueezeToDict (ToFlow $34) (lambda '($40 $41) $41) (lambda '($42 $43) (AsStruct '('_yql_agg_0 $42) '('"key" $43))) '('Auto 'Many)))
  (let $36 (Condense1 (OrderedFlatMap $35 (lambda '($44) (OrderedFlatMap (DictPayloads $44) (lambda '($45) $45)))) (lambda '($46) $46) (lambda '($47 $48) (AggrNotEquals (Member $47 '"key") (Member $48 '"key"))) (lambda '($49 $50) (AsStruct '('_yql_agg_0 (Extend (Member $49 '_yql_agg_0) (Member $50 '_yql_agg_0))) '('"key" (Member $50 '"key"))))))
  (let $37 (Bool 'true))
  (let $38 (Sort (Map $36 (lambda '($51) (block '(
    (let $52 (ResourceType '"Yson2.Node"))
    (let $53 '($52 '"" '1))
    (let $54 (ResourceType '"Yson2.Options"))
    (let $55 (OptionalType (DataType 'Bool)))
    (let $56 (CallableType '('"4") '($8) $53 '((OptionalType $54)) '($55 '"SkipMapEntity") '($55 '"EncodeUtf8") '($55 '"WriteNanAsString")))
    (let $57 (Udf '"Yson2.SerializeJson" (Void) (VoidType) '"" $56 (VoidType) '"" '()))
    (let $58 (TupleType (TupleType $3) (StructType) (TupleType)))
    (let $59 (CallableType '() '($52) '($3)))
    (let $60 '('('"strict")))
    (let $61 (Udf '"Yson2.From" (Void) $58 '"" $59 (VoidType) '"" $60))
    (let $62 (CallableType '('"2") '($54) '($55 '"AutoConvert") '($55 '"Strict")))
    (let $63 (Udf '"Yson2.Options" (Void) (VoidType) '"" $62 (VoidType) '"" $60))
    (let $64 (Apply $57 (Apply $61 (Member $51 '_yql_agg_0)) (Just (NamedApply $63 '() (AsStruct '('"AutoConvert" (Just (Bool '"false"))) '('"Strict" (Just $37)))))))
    (return (AsStruct '('"key" (Member $51 '"key")) '('"value" $64)))
  )))) $37 (lambda '($65) (Member $65 '"key"))))
  (let $39 (lambda '($66) (Member $66 '"key") (Member $66 '"value")))
  (return (FromFlow (ExpandMap $38 $39)))
))) $10))
(let $12 (DqCnMerge (TDqOutput $11 '0) '('('0 '"Asc"))))
(let $13 (DqPhyStage '($12) (lambda '($67) (FromFlow (NarrowMap (ToFlow $67) (lambda '($68 $69) (AsStruct '('"key" $68) '('"value" $69)))))) '('('"_logical_id" '2150) '('"_id" '"9b34a4b7-8138d005-e7093d93-49245b60"))))
(let $14 '($6 $11 $13))
(let $15 (DqCnResult (TDqOutput $13 '0) $1))
(return (KqpPhysicalQuery '((KqpPhysicalTx $14 '($15) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $9) '0 '0)) '('('"type" '"query"))))
)
