(
(let $1 (DataType 'String))
(let $2 (StructType '('"key" $1) '('"subkey" $1) '('"value" $1)))
(let $3 '('"_wide_channels" $2))
(let $4 '('('"_logical_id" '1026) '('"_id" '"73041770-1e0f605c-bae32b11-f49a95b5") $3))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $16 '@@["StructType";[["value";["DataType";"String"]];["subkey";["DataType";"String"]];["key";["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 '('"key" '"subkey" '"value"))
  (let $22 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $20 $21 (Void) (Void))) '()))))
  (let $23 (lambda '($27 $28 $29) $27 $28 $29))
  (let $24 (lambda '($30 $31 $32 $33 $34 $35) $30 $31 $32))
  (let $25 (lambda '($36 $37 $38 $39 $40 $41 $42 $43 $44) $42 $43 $44))
  (let $26 (lambda '($45 $46 $47 $48 $49 $50) $48 $49 $50))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $22 '()))) '-1073741824 $23 $24 $25 $26))
))) $4))
(let $6 '('0 '1 '2))
(let $7 (DqCnHashShuffle (TDqOutput $5 '0) $6 '0 '"HashV2"))
(let $8 (lambda '($60 $61 $62) (AsStruct '('"key" $60) '('"subkey" $61) '('"value" $62))))
(let $9 '('('"_logical_id" '1254) '('"_id" '"e27f293e-6eba3036-ae569063-8138204b") $3))
(let $10 (DqPhyStage '($7) (lambda '($51) (block '(
  (let $52 (NarrowSqueezeToDict (ToFlow (WideFromBlocks $51)) (lambda '($57 $58 $59) '($57 $58 $59)) $8 '('Auto 'Many)))
  (let $53 (Condense1 (OrderedFlatMap $52 (lambda '($63) (OrderedFlatMap (DictPayloads $63) (lambda '($64) $64)))) (lambda '($65) $65) (lambda '($66 $67) (Or (AggrNotEquals (Member $66 '"key") (Member $67 '"key")) (AggrNotEquals (Member $66 '"subkey") (Member $67 '"subkey")) (AggrNotEquals (Member $66 '"value") (Member $67 '"value")))) (lambda '($68 $69) $69)))
  (let $54 (Bool 'true))
  (let $55 (Sort $53 '($54 $54) (lambda '($70) '((Member $70 '"subkey") (Member $70 '"key")))))
  (let $56 (lambda '($71) (Member $71 '"key") (Member $71 '"subkey") (Member $71 '"value")))
  (return (FromFlow (ExpandMap $55 $56)))
))) $9))
(let $11 (DqCnMerge (TDqOutput $10 '0) '('('1 '"Asc") '('0 '"Asc"))))
(let $12 (DqPhyStage '($11) (lambda '($72) (FromFlow (NarrowMap (ToFlow $72) $8))) '('('"_logical_id" '1266) '('"_id" '"7400862c-bcf3cdc-1d2bf650-51537a48"))))
(let $13 '($5 $10 $12))
(let $14 '('"value" '"subkey" '"key"))
(let $15 (DqCnResult (TDqOutput $12 '0) $14))
(return (KqpPhysicalQuery '((KqpPhysicalTx $13 '($15) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $2) '0 '0)) '('('"type" '"query"))))
)
