(
(let $1 (DataType 'String))
(let $2 '('"key" $1))
(let $3 (StructType $2 '('"subkey" $1) '('"value" $1)))
(let $4 '('('"_logical_id" '1495) '('"_id" '"584b1291-d9ad950a-23caf6d8-3fd82f7f") '('"_wide_channels" (StructType '('_yql_agg_0 $3) $2))))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $13 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $14 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $13)))
  (let $15 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $16 (YtStat '('Id '"Input4") '('RecordsCount '"9") '('DataSize '"369") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $17 (YtTable '"Input4" $14 $15 $16 '() (Void) (Void) '"/Root/plato"))
  (let $18 '('"key" '"subkey" '"value"))
  (let $19 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $17 $18 (Void) (Void))) '()))))
  (let $20 (lambda '($26 $27 $28 $29) $28 $29))
  (let $21 (lambda '($30 $31 $32 $33 $34 $35) $34 $35))
  (let $22 (lambda '($36 $37 $38) (block '(
    (let $39 (AsStruct '('"key" $36) '('"subkey" $37) '('"value" $38)))
    (return $39 $36)
  ))))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $19 '()))) '-1073741824 (lambda '($23 $24 $25) $23) $20 $21 $22))
))) $4))
(let $6 (DqCnHashShuffle (TDqOutput $5 '0) '('1) '0 '"HashV2"))
(let $7 '('('"_logical_id" '1828) '('"_id" '"d16fa90e-325f1f3a-4ddfdc4d-7e79b72d") '('"_wide_channels" $3)))
(let $8 (DqPhyStage '($6) (lambda '($40) (block '(
  (let $41 (NarrowSqueezeToDict (ToFlow (WideFromBlocks $40)) (lambda '($45 $46) $46) (lambda '($47 $48) (AsStruct '('_yql_agg_0 $47) '('"key" $48))) '('Auto 'Many)))
  (let $42 (Condense1 (OrderedFlatMap $41 (lambda '($49) (OrderedFlatMap (DictPayloads $49) (lambda '($50) $50)))) (lambda '($51) $51) (lambda '($52 $53) (AggrNotEquals (Member $52 '"key") (Member $53 '"key"))) (lambda '($54 $55) $55)))
  (let $43 (Sort (Map $42 (lambda '($56) (Member $56 '_yql_agg_0))) (Bool 'true) (lambda '($57) (Member $57 '"key"))))
  (let $44 (lambda '($58) (Member $58 '"key") (Member $58 '"subkey") (Member $58 '"value")))
  (return (FromFlow (ExpandMap $43 $44)))
))) $7))
(let $9 (DqCnMerge (TDqOutput $8 '0) '('('0 '"Asc"))))
(let $10 (DqPhyStage '($9) (lambda '($59) (FromFlow (NarrowMap (ToFlow $59) (lambda '($60 $61 $62) (AsStruct '('"key" $60) '('"subkey" $61) '('"value" $62)))))) '('('"_logical_id" '1840) '('"_id" '"93114107-fa1482b6-af9c9211-5d19992"))))
(let $11 '($5 $8 $10))
(let $12 (DqCnResult (TDqOutput $10 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $11 '($12) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $3) '0 '0)) '('('"type" '"query"))))
)
