(
(let $1 (DataType 'Int32))
(let $2 (StructType '('"key" $1) '('"subkey1" $1) '('"value" (DataType 'String))))
(let $3 '('('"_logical_id" '743) '('"_id" '"3b122eb2-b0552779-f92cd1ac-e725fb28") '('"_wide_channels" $2)))
(let $4 (DqPhyStage '() (lambda '() (block '(
  (let $10 '@@["StructType";[["key";["DataType";"Int32"]];["subkey";["DataType";"Int32"]];["value";["DataType";"String"]]]]@@)
  (let $11 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $10)))
  (let $12 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $13 (YtStat '('Id '"Input") '('RecordsCount '"11") '('DataSize '"374") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $14 (YtTable '"Input" $11 $12 $13 '() (Void) (Void) '"/Root/plato"))
  (let $15 '('"key" '"subkey" '"value"))
  (let $16 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $14 $15 (Void) (Void))) '()))))
  (let $17 (Bool 'true))
  (let $18 '($17 (Bool 'false) $17))
  (let $19 (Sort (NarrowMap (DqReadWideWrap $16 '()) (lambda '($21 $22 $23) (AsStruct '('"key" $21) '('"subkey1" (+ $22 (Int32 '0))) '('"value" $23)))) $18 (lambda '($24) '((Member $24 '"key") (Member $24 '"subkey1") (Member $24 '"value")))))
  (let $20 (lambda '($25) (Member $25 '"key") (Member $25 '"subkey1") (Member $25 '"value")))
  (return (FromFlow (ExpandMap $19 $20)))
))) $3))
(let $5 '('('0 '"Asc") '('1 '"Desc") '('"2" '"Asc")))
(let $6 (DqCnMerge (TDqOutput $4 '0) $5))
(let $7 (DqPhyStage '($6) (lambda '($26) (FromFlow (NarrowMap (ToFlow $26) (lambda '($27 $28 $29) (AsStruct '('"key" $27) '('"subkey1" $28) '('"value" $29)))))) '('('"_logical_id" '755) '('"_id" '"96d16a8a-c1a6552-542f6fe4-8b47d365"))))
(let $8 '('"key" '"subkey1" '"value"))
(let $9 (DqCnResult (TDqOutput $7 '0) $8))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($4 $7) '($9) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $2) '0 '0)) '('('"type" '"query"))))
)
