(
(let $1 (StructType '('"subkey1" (DataType 'Int32)) '('"value" (DataType 'String))))
(let $2 '('('"_logical_id" '681) '('"_id" '"f10fa25c-1e5188c2-3df88b9-a32b2da8") '('"_wide_channels" $1)))
(let $3 (DqPhyStage '() (lambda '() (block '(
  (let $7 '@@["StructType";[["key";["DataType";"Int32"]];["subkey";["DataType";"Int32"]];["value";["DataType";"String"]]]]@@)
  (let $8 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $7)))
  (let $9 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $10 (YtStat '('Id '"Input") '('RecordsCount '"11") '('DataSize '"374") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $11 (YtTable '"Input" $8 $9 $10 '() (Void) (Void) '"/Root/plato"))
  (let $12 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $11 '('"subkey" '"value") (Void) (Void))) '()))))
  (let $13 (Sort (NarrowMap (DqReadWideWrap $12 '()) (lambda '($15 $16) (AsStruct '('"subkey1" (+ $15 (Int32 '0))) '('"value" $16)))) '((Bool 'true) (Bool 'false)) (lambda '($17) '((Member $17 '"subkey1") (Member $17 '"value")))))
  (let $14 (lambda '($18) (Member $18 '"subkey1") (Member $18 '"value")))
  (return (FromFlow (ExpandMap $13 $14)))
))) $2))
(let $4 (DqCnMerge (TDqOutput $3 '0) '('('0 '"Asc") '('1 '"Desc"))))
(let $5 (DqPhyStage '($4) (lambda '($19) (FromFlow (NarrowMap (ToFlow $19) (lambda '($20 $21) (AsStruct '('"subkey1" $20) '('"value" $21)))))) '('('"_logical_id" '693) '('"_id" '"6e721aeb-351dc564-d5f6a5a2-f43a63cf"))))
(let $6 (DqCnResult (TDqOutput $5 '0) '('"subkey1" '"value")))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($3 $5) '($6) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $1) '0 '0)) '('('"type" '"query"))))
)
