(
(let $1 (DataType 'String))
(let $2 '('key $1))
(let $3 (StructType $2 '('"subkey" $1) '('"value" $1)))
(let $4 '('('"_logical_id" '942) '('"_id" '"6406d0a-e8a42348-491b11fa-633470d8") '('"_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" '1348) '('"_id" '"615d889b-b0f75b77-91212c1b-7983046") '('"_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) (Sort $35 '($23 $24) (lambda '($36) '((Member $36 '"subkey") (Member $36 '"value")))))))) (lambda '($37) (Member $37 'key)) (lambda '($38 $39) (AggrNotEquals $38 (Member $39 'key))) (lambda '($40 $41) (ToFlow (Just (AsStruct '('key $40) '('superstring (Collect (Condense $41 (String '"") (lambda '($42 $43) $24) (lambda '($44 $45) (Concat $45 (Concat (Member $44 '"subkey") (Member $44 '"value")))))))))))))
  (let $26 (Sort $25 $23 (lambda '($46) (Member $46 'key))))
  (let $27 (lambda '($47) (Member $47 'key) (Member $47 'superstring)))
  (return (FromFlow (ExpandMap $26 $27)))
))) $8))
(let $10 (DqCnMerge (TDqOutput $9 '0) '('('0 '"Asc"))))
(let $11 (DqPhyStage '($10) (lambda '($48) (FromFlow (NarrowMap (ToFlow $48) (lambda '($49 $50) (AsStruct '('key $49) '('superstring $50)))))) '('('"_logical_id" '1360) '('"_id" '"365f2b9-40dd1f8d-e9f1ef03-bdf8e258"))))
(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"))))
)
