(
(let $1 (lambda '($28 $29 $30) (AsStruct '('_yql_sys_order_by (Concat $28 $29)) '('"key" $28) '('"subkey" $29) '('"value" $30))))
(let $2 (Uint64 '100))
(let $3 (Uint64 '90))
(let $4 (AggrAdd $2 $3))
(let $5 (Bool 'true))
(let $6 (lambda '($31) (Member $31 '_yql_sys_order_by)))
(let $7 (DataType 'String))
(let $8 (StructType '('"key" $7) '('"subkey" $7) '('"value" $7)))
(let $9 '('"_wide_channels" $8))
(let $10 '('('"_logical_id" '686) '('"_id" '"a49557f1-2f31fdf4-ee7cb117-93120d71") $9))
(let $11 (DqPhyStage '() (lambda '() (block '(
  (let $19 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $20 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $19)))
  (let $21 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $22 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $23 (YtTable '"Input" $20 $21 $22 '() (Void) (Void) '"/Root/plato"))
  (let $24 '('"key" '"subkey" '"value"))
  (let $25 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $23 $24 (Void) (Void))) '()))))
  (let $26 (Top (NarrowMap (DqReadWideWrap $25 '()) $1) $4 $5 $6))
  (let $27 (lambda '($32) (Member $32 '"key") (Member $32 '"subkey") (Member $32 '"value")))
  (return (FromFlow (ExpandMap $26 $27)))
))) $10))
(let $12 (DqCnUnionAll (TDqOutput $11 '0)))
(let $13 '('('"_logical_id" '758) '('"_id" '"9293f201-d5140afa-35b2f2db-28818d71") $9))
(let $14 (DqPhyStage '($12) (lambda '($33) (block '(
  (let $34 (Uint64 '18446744073709551615))
  (let $35 (If (> $2 (- $34 $3)) $34 $4))
  (let $36 (TopSort (NarrowMap (ToFlow $33) $1) (Min $35 $4) $5 $6))
  (let $37 (lambda '($38) (Member $38 '"key") (Member $38 '"subkey") (Member $38 '"value")))
  (return (FromFlow (ExpandMap $36 $37)))
))) $13))
(let $15 (DqCnUnionAll (TDqOutput $14 '0)))
(let $16 (DqPhyStage '($15) (lambda '($39) (FromFlow (NarrowMap (Take (Skip (ToFlow $39) $3) $2) (lambda '($40 $41 $42) (AsStruct '('"key" $40) '('"subkey" $41) '('"value" $42)))))) '('('"_logical_id" '772) '('"_id" '"cfc34c46-d55b893e-4ca576e4-15ec3924"))))
(let $17 '($11 $14 $16))
(let $18 (DqCnResult (TDqOutput $16 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $17 '($18) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $8) '0 '0)) '('('"type" '"query"))))
)
