(
(let $1 (DataType 'String))
(let $2 '('key $1))
(let $3 (StructType $2 '('"subkey" $1) '('"value" $1)))
(let $4 '('('"_logical_id" '945) '('"_id" '"e09ebc48-1da90952-64e18fcd-1c20c971") '('"_wide_channels" $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 '"Input1") '('RecordsCount '"9") '('DataSize '"360") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $18 (YtTable '"Input1" $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 (StructType $2 '('superstring (ListType $1))))
(let $8 '('('"_logical_id" '1353) '('"_id" '"5f2a11d5-5729ca01-f299916a-6e89c44") '('"_wide_channels" $7)))
(let $9 (DqPhyStage '($6) (lambda '($21) (block '(
  (let $22 (NarrowSqueezeToDict (ToFlow $21) (lambda '($28 $29 $30) $28) (lambda '($31 $32 $33) (AsStruct '('key $31) '('"subkey" $32) '('"value" $33))) '('Auto 'Many)))
  (let $23 (Bool 'true))
  (let $24 (Bool 'false))
  (let $25 (Chopper (OrderedFlatMap $22 (lambda '($34) (OrderedFlatMap (DictPayloads $34) (lambda '($35) (block '(
    (let $36 (Sort (OrderedMap $35 (lambda '($37) (block '(
      (let $38 (Member $37 '"subkey"))
      (return (AsStruct '('_yql_sys_order_by_0 (AsList $38)) '('key (Member $37 'key)) '('"subkey" $38) '('"value" (Member $37 '"value"))))
    )))) '($23 $24) (lambda '($39) '((Member $39 '_yql_sys_order_by_0) (Member $39 '"value")))))
    (return (OrderedMap $36 (lambda '($40) (AsStruct '('key (Member $40 'key)) '('"subkey" (Member $40 '"subkey")) '('"value" (Member $40 '"value"))))))
  )))))) (lambda '($41) (Member $41 'key)) (lambda '($42 $43) (AggrNotEquals $42 (Member $43 'key))) (lambda '($44 $45) (ToFlow (Just (AsStruct '('key $44) '('superstring (Collect (Condense $45 (String '"") (lambda '($46 $47) $24) (lambda '($48 $49) (Concat $49 (Concat (Member $48 '"subkey") (Member $48 '"value")))))))))))))
  (let $26 (Sort $25 $23 (lambda '($50) (Member $50 'key))))
  (let $27 (lambda '($51) (Member $51 'key) (Member $51 'superstring)))
  (return (FromFlow (ExpandMap $26 $27)))
))) $8))
(let $10 (DqCnMerge (TDqOutput $9 '0) '('('0 '"Asc"))))
(let $11 (DqPhyStage '($10) (lambda '($52) (FromFlow (NarrowMap (ToFlow $52) (lambda '($53 $54) (AsStruct '('key $53) '('superstring $54)))))) '('('"_logical_id" '1365) '('"_id" '"b5efac72-eb5f6168-83a6ff00-fdb9d67f"))))
(let $12 '($5 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $7) '0 '0)) '('('"type" '"query"))))
)
