(
(let $1 '('"key" '"subkey" '"value"))
(let $2 (DataType 'String))
(let $3 '('"key" $2))
(let $4 (StructType '('_yql_agg_0 $2) '('_yql_agg_1 $2) $3))
(let $5 '('('"_logical_id" '1640) '('"_id" '"9f12037c-83d6907d-44af2da6-9b485820") '('"_wide_channels" $4)))
(let $6 (DqPhyStage '() (lambda '() (block '(
  (let $15 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $16 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $15)))
  (let $17 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $18 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $19 (YtTable '"Input" $16 $17 $18 '() (Void) (Void) '"/Root/plato"))
  (let $20 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $19 $1 (Void) (Void))) '()))))
  (let $21 (lambda '($27 $28 $29 $30) $30 $29))
  (let $22 (lambda '($31 $32 $33 $34 $35 $36) (AggrMax $34 $35) (AggrMin $33 $36)))
  (let $23 (lambda '($37 $38 $39) $38 $39 $37))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $20 '()))) '-1073741824 (lambda '($24 $25 $26) $24) $21 $22 $23))
))) $5))
(let $7 (DqCnHashShuffle (TDqOutput $6 '0) '('"2") '0 '"HashV2"))
(let $8 (StructType $3 '('"subkey" $2) '('"value" $2)))
(let $9 '('('"_logical_id" '1895) '('"_id" '"2c1e1085-329759e1-d51bdfb4-a59c0c16") '('"_wide_channels" $8)))
(let $10 (DqPhyStage '($7) (lambda '($40) (block '(
  (let $41 (NarrowSqueezeToDict (ToFlow (WideFromBlocks $40)) (lambda '($45 $46 $47) $47) (lambda '($48 $49 $50) (AsStruct '('_yql_agg_0 $48) '('_yql_agg_1 $49) '('"key" $50))) '('Auto 'Many)))
  (let $42 (Condense1 (OrderedFlatMap $41 (lambda '($51) (OrderedFlatMap (DictPayloads $51) (lambda '($52) $52)))) (lambda '($53) $53) (lambda '($54 $55) (AggrNotEquals (Member $54 '"key") (Member $55 '"key"))) (lambda '($56 $57) (AsStruct '('_yql_agg_0 (AggrMax (Member $56 '_yql_agg_0) (Member $57 '_yql_agg_0))) '('_yql_agg_1 (AggrMin (Member $56 '_yql_agg_1) (Member $57 '_yql_agg_1))) '('"key" (Member $57 '"key"))))))
  (let $43 (Sort (Map $42 (lambda '($58) (AsStruct '('"key" (Member $58 '"key")) '('"subkey" (Member $58 '_yql_agg_1)) '('"value" (Member $58 '_yql_agg_0))))) (Bool 'true) (lambda '($59) (Member $59 '"key"))))
  (let $44 (lambda '($60) (Member $60 '"key") (Member $60 '"subkey") (Member $60 '"value")))
  (return (FromFlow (ExpandMap $43 $44)))
))) $9))
(let $11 (DqCnMerge (TDqOutput $10 '0) '('('0 '"Asc"))))
(let $12 (DqPhyStage '($11) (lambda '($61) (FromFlow (NarrowMap (ToFlow $61) (lambda '($62 $63 $64) (AsStruct '('"key" $62) '('"subkey" $63) '('"value" $64)))))) '('('"_logical_id" '1907) '('"_id" '"e1e5102a-2a0383f-f85610c0-5a5ab5ce"))))
(let $13 '($6 $10 $12))
(let $14 (DqCnResult (TDqOutput $12 '0) $1))
(return (KqpPhysicalQuery '((KqpPhysicalTx $13 '($14) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $8) '0 '0)) '('('"type" '"query"))))
)
