(
(let $1 '('"key" '"subkey" '"value"))
(let $2 (DataType 'String))
(let $3 (StructType '('"key" $2) '('"subkey" $2) '('"value" $2)))
(let $4 '('"_wide_channels" $3))
(let $5 '('('"_logical_id" '990) '('"_id" '"4ff7f5f2-f79d4d16-9c2b8b2f-e0818d88") $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 '"Input3") '('RecordsCount '"7") '('DataSize '"287") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $20 (YtTable '"Input3" $17 $18 $19 '() (Void) (Void) '"/Root/plato"))
  (let $21 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $20 $1 (Void) (Void))) '()))))
  (let $22 (lambda '($26 $27 $28) $26 $27 $28))
  (let $23 (lambda '($29 $30 $31 $32 $33 $34) $29 $30 $31))
  (let $24 (lambda '($35 $36 $37 $38 $39 $40 $41 $42 $43) $41 $42 $43))
  (let $25 (lambda '($44 $45 $46 $47 $48 $49) $47 $48 $49))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $21 '()))) '-1073741824 $22 $23 $24 $25))
))) $5))
(let $7 '('0 '1 '2))
(let $8 (DqCnHashShuffle (TDqOutput $6 '0) $7 '0 '"HashV2"))
(let $9 (lambda '($59 $60 $61) (AsStruct '('"key" $59) '('"subkey" $60) '('"value" $61))))
(let $10 '('('"_logical_id" '1218) '('"_id" '"62bdaa25-adceec6-ef4baa56-7e841405") $4))
(let $11 (DqPhyStage '($8) (lambda '($50) (block '(
  (let $51 (NarrowSqueezeToDict (ToFlow (WideFromBlocks $50)) (lambda '($56 $57 $58) '($56 $57 $58)) $9 '('Auto 'Many)))
  (let $52 (Condense1 (OrderedFlatMap $51 (lambda '($62) (OrderedFlatMap (DictPayloads $62) (lambda '($63) $63)))) (lambda '($64) $64) (lambda '($65 $66) (Or (AggrNotEquals (Member $65 '"key") (Member $66 '"key")) (AggrNotEquals (Member $65 '"subkey") (Member $66 '"subkey")) (AggrNotEquals (Member $65 '"value") (Member $66 '"value")))) (lambda '($67 $68) $68)))
  (let $53 (Bool 'true))
  (let $54 (Sort $52 '($53 $53) (lambda '($69) '((Member $69 '"key") (Member $69 '"subkey")))))
  (let $55 (lambda '($70) (Member $70 '"key") (Member $70 '"subkey") (Member $70 '"value")))
  (return (FromFlow (ExpandMap $54 $55)))
))) $10))
(let $12 (DqCnMerge (TDqOutput $11 '0) '('('0 '"Asc") '('1 '"Asc"))))
(let $13 (DqPhyStage '($12) (lambda '($71) (FromFlow (NarrowMap (ToFlow $71) $9))) '('('"_logical_id" '1230) '('"_id" '"6a4ce7f1-d7bad180-c0ecc3c2-a209ea00"))))
(let $14 '($6 $11 $13))
(let $15 (DqCnResult (TDqOutput $13 '0) $1))
(return (KqpPhysicalQuery '((KqpPhysicalTx $14 '($15) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $3) '0 '0)) '('('"type" '"query"))))
)
