(
(let $1 (Uint64 '100))
(let $2 (Uint64 '90))
(let $3 (AggrAdd $1 $2))
(let $4 (DataType 'String))
(let $5 (StructType '('"key" $4) '('"subkey" $4) '('"value" $4)))
(let $6 '('"_wide_channels" $5))
(let $7 '('('"_logical_id" '677) '('"_id" '"292bc32a-c0957142-fc5c3306-f2d30494") $6))
(let $8 (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 '"4") '('DataSize '"166") '('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))) '()))))
  (return (FromFlow (WideTopSort (DqReadWideWrap $22 '()) $3 '('('0 (Bool 'false))))))
))) $7))
(let $9 (DqCnMerge (TDqOutput $8 '0) '('('0 '"Desc"))))
(let $10 '('('"_logical_id" '736) '('"_id" '"8fbbfd8d-392968e5-4f3f7a44-887ee31e") $6))
(let $11 (DqPhyStage '($9) (lambda '($23) (block '(
  (let $24 (Uint64 '18446744073709551615))
  (let $25 (If (> $1 (- $24 $2)) $24 $3))
  (return (FromFlow (Take (ToFlow $23) (Min $25 $3))))
))) $10))
(let $12 (DqCnUnionAll (TDqOutput $11 '0)))
(let $13 (DqPhyStage '($12) (lambda '($26) (FromFlow (NarrowMap (Take (Skip (ToFlow $26) $2) $1) (lambda '($27 $28 $29) (AsStruct '('"key" $27) '('"subkey" $28) '('"value" $29)))))) '('('"_logical_id" '750) '('"_id" '"91c9367f-5163d4c1-a7d2a0d6-2017f012"))))
(let $14 '($8 $11 $13))
(let $15 (DqCnResult (TDqOutput $13 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $14 '($15) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $5) '0 '0)) '('('"type" '"query"))))
)
