(
(let $1 (DataType 'String))
(let $2 (ListType $1))
(let $3 '('('"_logical_id" '2201) '('"_id" '"8cedc984-bb7d3309-55091644-7a893f29") '('"_wide_channels" (StructType '('_yql_agg_0 $2) '('"value" $1)))))
(let $4 (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 '"Input4") '('RecordsCount '"9") '('DataSize '"369") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $18 (YtTable '"Input4" $15 $16 $17 '() (Void) (Void) '"/Root/plato"))
  (let $19 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $18 '('"key" '"value") (Void) (Void))) '()))))
  (let $20 (lambda '($30 $31) $31 $30))
  (return (WideFromBlocks (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $19 '()))) '-1073741824 (lambda '($21 $22) $22) (lambda '($23 $24 $25) (AsList $24)) (lambda '($26 $27 $28 $29) (Insert $29 $27)) $20)))
))) $3))
(let $5 (DqCnHashShuffle (TDqOutput $4 '0) '('1) '0 '"HashV2"))
(let $6 (StructType '('"key_list" $2) '('"name" $1) '('"sorted_key_list" $2)))
(let $7 '('('"_logical_id" '2449) '('"_id" '"2b40bf8-b623b129-498f1dab-45a844e4") '('"_wide_channels" $6)))
(let $8 (DqPhyStage '($5) (lambda '($32) (block '(
  (let $33 (NarrowSqueezeToDict (ToFlow $32) (lambda '($38 $39) $39) (lambda '($40 $41) (AsStruct '('_yql_agg_0 $40) '('"value" $41))) '('Auto 'Many)))
  (let $34 (Condense1 (OrderedFlatMap $33 (lambda '($42) (OrderedFlatMap (DictPayloads $42) (lambda '($43) $43)))) (lambda '($44) $44) (lambda '($45 $46) (AggrNotEquals (Member $45 '"value") (Member $46 '"value"))) (lambda '($47 $48) (AsStruct '('_yql_agg_0 (Extend (Member $47 '_yql_agg_0) (Member $48 '_yql_agg_0))) '('"value" (Member $48 '"value"))))))
  (let $35 (Bool 'true))
  (let $36 (Sort (Map $34 (lambda '($49) (block '(
    (let $50 (Member $49 '_yql_agg_0))
    (let $51 (Sort $50 $35 (lambda '($52) $52)))
    (return (AsStruct '('"key_list" $50) '('"name" (Member $49 '"value")) '('"sorted_key_list" $51)))
  )))) $35 (lambda '($53) (Member $53 '"name"))))
  (let $37 (lambda '($54) (Member $54 '"key_list") (Member $54 '"name") (Member $54 '"sorted_key_list")))
  (return (FromFlow (ExpandMap $36 $37)))
))) $7))
(let $9 (DqCnMerge (TDqOutput $8 '0) '('('1 '"Asc"))))
(let $10 (DqPhyStage '($9) (lambda '($55) (FromFlow (NarrowMap (ToFlow $55) (lambda '($56 $57 $58) (AsStruct '('"key_list" $56) '('"name" $57) '('"sorted_key_list" $58)))))) '('('"_logical_id" '2461) '('"_id" '"4062c707-a609f952-91815c97-35ca3ec5"))))
(let $11 '($4 $8 $10))
(let $12 '('"key_list" '"sorted_key_list" '"name"))
(let $13 (DqCnResult (TDqOutput $10 '0) $12))
(return (KqpPhysicalQuery '((KqpPhysicalTx $11 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $6) '0 '0)) '('('"type" '"query"))))
)
