(
(let $1 (lambda '($38 $39 $40) $39 $40 $38))
(let $2 (DataType 'String))
(let $3 (ListType $2))
(let $4 '('mod (OptionalType (DataType 'Int32))))
(let $5 (StructType '('_yql_agg_0 $3) '('_yql_agg_1 $3) $4))
(let $6 '('('"_logical_id" '2823) '('"_id" '"1c74ab17-88a4d989-89b3a625-7aadf690") '('"_wide_channels" $5)))
(let $7 (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 '"Input") '('RecordsCount '"14") '('DataSize '"614") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $20 (YtTable '"Input" $17 $18 $19 '() (Void) (Void) '"/Root/plato"))
  (let $21 '('"key" '"subkey" '"value"))
  (let $22 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $20 $21 (Void) (Void))) '()))))
  (let $23 (lambda '($28 $29 $30 $31) (AsList $29) (AsList $31)))
  (let $24 (lambda '($32 $33 $34 $35 $36 $37) (Insert $36 $33) (Insert $37 $35)))
  (return (WideFromBlocks (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $22 '()))) '-1073741824 (lambda '($25 $26 $27) (% (SafeCast $26 (OptionalType (DataType 'Uint32))) (Int32 '"10"))) $23 $24 $1)))
))) $6))
(let $8 (DqCnHashShuffle (TDqOutput $7 '0) '('"2") '0 '"HashV2"))
(let $9 (StructType '('dk (TupleType (DataType 'Uint64) $2)) '('"lv" $3) $4))
(let $10 '('('"_logical_id" '3491) '('"_id" '"6a6a1acd-284f129a-d37c5ccc-355076b") '('"_wide_channels" $9)))
(let $11 (DqPhyStage '($8) (lambda '($41) (block '(
  (let $42 (lambda '($51 $52 $53 $54) $52 $53))
  (let $43 (lambda '($55 $56 $57 $58 $59 $60) (Extend $56 $59) (Extend $57 $60)))
  (let $44 (WideCombiner (ToFlow $41) '"" (lambda '($48 $49 $50) $50) $42 $43 $1))
  (let $45 (Bool 'true))
  (let $46 (Sort (NarrowFlatMap $44 (lambda '($61 $62 $63) (block '(
    (let $64 (Uint64 '1))
    (let $65 (lambda '($66) $66))
    (return (OrderedMap (Collect (DictItems (ToDict (Enumerate (TopSort $61 $64 $45 $65)) (lambda '($67) (Nth $67 '0)) (lambda '($68) (Nth $68 '1)) '('Auto 'One)))) (lambda '($69) (block '(
      (let $70 (TopSort $62 $64 $45 $65))
      (return (AsStruct '('dk $69) '('"lv" $70) '('mod $63)))
    )))))
  )))) $45 (lambda '($71) (Member $71 'mod))))
  (let $47 (lambda '($72) (Member $72 'dk) (Member $72 '"lv") (Member $72 'mod)))
  (return (FromFlow (ExpandMap $46 $47)))
))) $10))
(let $12 (DqCnMerge (TDqOutput $11 '0) '('('"2" '"Asc"))))
(let $13 (DqPhyStage '($12) (lambda '($73) (FromFlow (NarrowMap (ToFlow $73) (lambda '($74 $75 $76) (AsStruct '('dk $74) '('"lv" $75) '('mod $76)))))) '('('"_logical_id" '3503) '('"_id" '"9219fe5d-a1134740-56e7adc6-8469a83d"))))
(let $14 '($7 $11 $13))
(let $15 (DqCnResult (TDqOutput $13 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $14 '($15) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $9) '0 '0)) '('('"type" '"query"))))
)
