(
(let $1 (DataType 'String))
(let $2 (StructType '('"key" $1) '('"subkey" $1) '('"value" $1)))
(let $3 '('('"_logical_id" '601) '('"_id" '"6d04dedf-19a1a5c9-18922ecd-cd975be8") '('"_wide_channels" $2)))
(let $4 (DqPhyStage '() (lambda '() (block '(
  (let $8 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $9 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $8)))
  (let $10 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $11 (YtStat '('Id '"Input") '('RecordsCount '"10") '('DataSize '"424") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $12 (YtTable '"Input" $9 $10 $11 '() (Void) (Void) '"/Root/plato"))
  (let $13 '('"key" '"subkey" '"value"))
  (let $14 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $12 $13 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $14 '())))
))) $3))
(let $5 (DqCnUnionAll (TDqOutput $4 '0)))
(let $6 (DqPhyStage '($5) (lambda '($15) (block '(
  (let $16 (Sort (NarrowMap (ToFlow $15) (lambda '($17 $18 $19) (block '(
    (let $20 (Int32 '"10"))
    (return (AsStruct '('_yql_sys_order_by_0 (% (/ (SafeCast $17 (OptionalType (DataType 'Uint32))) $20) $20)) '('"key" $17) '('"subkey" $18) '('"value" $19)))
  )))) '((Bool 'false) (Bool 'true)) (lambda '($21) '((Member $21 '_yql_sys_order_by_0) (Member $21 '"subkey")))))
  (return (FromFlow (OrderedMap $16 (lambda '($22) (AsStruct '('"key" (Member $22 '"key")) '('"subkey" (Member $22 '"subkey")) '('"value" (Member $22 '"value")))))))
))) '('('"_logical_id" '639) '('"_id" '"116c70e-402c973a-c8f59134-85ea5ae7"))))
(let $7 (DqCnResult (TDqOutput $6 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($4 $6) '($7) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $2) '0 '0)) '('('"type" '"query"))))
)
