(
(let $1 '('"key" '"subkey" '"value"))
(let $2 (OptionalType (DataType 'Int32)))
(let $3 (DataType 'String))
(let $4 (StructType '('"key" $2) '('"subkey" $3) '('"value" $3)))
(let $5 '('('"_logical_id" '726) '('"_id" '"84475bc2-4834ac37-7d84648-d7af6d87") '('"_wide_channels" $4)))
(let $6 (DqPhyStage '() (lambda '() (block '(
  (let $10 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["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 '"4") '('DataSize '"167") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $14 (YtTable '"Input" $11 $12 $13 '() (Void) (Void) '"/Root/plato"))
  (let $15 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $14 $1 (Void) (Void))) '()))))
  (let $16 (Bool 'true))
  (let $17 (Sort (NarrowMap (DqReadWideWrap $15 '()) (lambda '($19 $20 $21) (AsStruct '('"key" (SafeCast $19 $2)) '('"subkey" $20) '('"value" $21)))) '($16 $16) (lambda '($22) '((Member $22 '"key") (Member $22 '"subkey")))))
  (let $18 (lambda '($23) (Member $23 '"key") (Member $23 '"subkey") (Member $23 '"value")))
  (return (FromFlow (ExpandMap $17 $18)))
))) $5))
(let $7 (DqCnMerge (TDqOutput $6 '0) '('('0 '"Asc") '('1 '"Asc"))))
(let $8 (DqPhyStage '($7) (lambda '($24) (FromFlow (NarrowMap (ToFlow $24) (lambda '($25 $26 $27) (AsStruct '('"key" $25) '('"subkey" $26) '('"value" $27)))))) '('('"_logical_id" '738) '('"_id" '"c5a88a76-bcfc00a8-6abac2d-5e347ba0"))))
(let $9 (DqCnResult (TDqOutput $8 '0) $1))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($6 $8) '($9) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $4) '0 '0)) '('('"type" '"query"))))
)
