(
(let $1 (DataType 'String))
(let $2 (StructType '('"key" $1) '('"subkey" $1) '('"value" $1)))
(let $3 '('"_wide_channels" $2))
(let $4 '('('"_logical_id" '590) '('"_id" '"2a063bb6-a640870c-e45ad5c5-bead0914") $3))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $14 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (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 '"Input0") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $18 (YtTable '"Input0" $15 $16 $17 '() (Void) (Void) '"/Root/plato"))
  (let $19 '('"key" '"subkey" '"value"))
  (let $20 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $18 $19 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $20 '())))
))) $4))
(let $6 (DqCnHashShuffle (TDqOutput $5 '0) '('0) '0 '"HashV2"))
(let $7 (lambda '($28 $29 $30) (AsStruct '('"key" $28) '('"subkey" $29) '('"value" $30))))
(let $8 '('('"_logical_id" '720) '('"_id" '"2372f1b0-e3c0704f-59896cbb-4f5a905") $3))
(let $9 (DqPhyStage '($6) (lambda '($21) (block '(
  (let $22 (NarrowSqueezeToDict (ToFlow $21) (lambda '($25 $26 $27) $25) $7 '('Auto 'Many)))
  (let $23 (Sort (OrderedFlatMap $22 (lambda '($31) (OrderedFlatMap (DictPayloads $31) (lambda '($32) $32)))) (Bool 'true) (lambda '($33) (Member $33 '"value"))))
  (let $24 (lambda '($34) (Member $34 '"key") (Member $34 '"subkey") (Member $34 '"value")))
  (return (FromFlow (ExpandMap $23 $24)))
))) $8))
(let $10 (DqCnMerge (TDqOutput $9 '0) '('('"2" '"Asc"))))
(let $11 (DqPhyStage '($10) (lambda '($35) (FromFlow (NarrowMap (ToFlow $35) $7))) '('('"_logical_id" '732) '('"_id" '"42389ae8-43c2d657-a8309a4a-2eacb73"))))
(let $12 '($5 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $2) '0 '0)) '('('"type" '"query"))))
)
