(
(let $1 (StructType '('"subkey1" (DataType 'Int32)) '('"value" (DataType 'String))))
(let $2 '('('"_logical_id" '681) '('"_id" '"a4f25f6f-1df8ad6c-ace4617-9c8fe9d4") '('"_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 (Bool 'true))
  (let $14 (Sort (NarrowMap (DqReadWideWrap $12 '()) (lambda '($16 $17) (AsStruct '('"subkey1" (+ $16 (Int32 '0))) '('"value" $17)))) '($13 $13) (lambda '($18) '((Member $18 '"subkey1") (Member $18 '"value")))))
  (let $15 (lambda '($19) (Member $19 '"subkey1") (Member $19 '"value")))
  (return (FromFlow (ExpandMap $14 $15)))
))) $2))
(let $4 (DqCnMerge (TDqOutput $3 '0) '('('0 '"Asc") '('1 '"Asc"))))
(let $5 (DqPhyStage '($4) (lambda '($20) (FromFlow (NarrowMap (ToFlow $20) (lambda '($21 $22) (AsStruct '('"subkey1" $21) '('"value" $22)))))) '('('"_logical_id" '693) '('"_id" '"e35cd150-5ebdfb31-7d478eea-af8bbf63"))))
(let $6 (DqCnResult (TDqOutput $5 '0) '('"subkey1" '"value")))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($3 $5) '($6) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $1) '0 '0)) '('('"type" '"query"))))
)
