(
(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" '"2a679d89-af8589a-2940fb2b-2567ed37") $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 'true))))))
))) $7))
(let $9 (DqCnMerge (TDqOutput $8 '0) '('('0 '"Asc"))))
(let $10 '('('"_logical_id" '736) '('"_id" '"c42144bc-4742e7ec-716f933d-a7cc41b8") $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" '"a0b68e67-b40a1ba2-15bd27ec-298a52e6"))))
(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"))))
)
