(
(let $1 (DataType 'String))
(let $2 (OptionalType $1))
(let $3 (StructType '('"strE1" $2) '('"subkey" $2)))
(let $4 '('('"_logical_id" '739) '('"_id" '"657e2234-aca68e24-fb3862f0-51b8eec7") '('"_wide_channels" $3)))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $9 '@@["StructType";[["key";["OptionalType";["DataType";"String"]]];["subkey";["OptionalType";["DataType";"String"]]]]]@@)
  (let $10 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '0) '('UniqueKeys '0) '('Type $9)))
  (let $11 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $12 (YtStat '('Id '"Input") '('RecordsCount '"7") '('DataSize '"454") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $13 (YtTable '"Input" $10 $11 $12 '() (Void) (Void) '"/Root/plato"))
  (let $14 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $13 '('"_other" '"subkey") (Void) (Void))) '()))))
  (let $15 (Sort (NarrowMap (DqReadWideWrap $14 '()) (lambda '($17 $18) (block '(
    (let $19 (Just $17))
    (let $20 (Nothing (OptionalType (DictType $1 (DataType 'Yson)))))
    (let $21 (TryWeakMemberFromDict $19 $20 'String '"strE1"))
    (let $22 (TryWeakMemberFromDict $19 $20 'String '"subkey"))
    (return (AsStruct '('"strE1" $21) '('"subkey" (Coalesce $18 $22))))
  )))) (Bool 'true) (lambda '($23) (Member $23 '"subkey"))))
  (let $16 (lambda '($24) (Member $24 '"strE1") (Member $24 '"subkey")))
  (return (FromFlow (ExpandMap $15 $16)))
))) $4))
(let $6 (DqCnMerge (TDqOutput $5 '0) '('('1 '"Asc"))))
(let $7 (DqPhyStage '($6) (lambda '($25) (FromFlow (NarrowMap (ToFlow $25) (lambda '($26 $27) (AsStruct '('"strE1" $26) '('"subkey" $27)))))) '('('"_logical_id" '751) '('"_id" '"7b06cd3b-fab9975f-b1c1ef18-8dcf164d"))))
(let $8 (DqCnResult (TDqOutput $7 '0) '('"subkey" '"strE1")))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($5 $7) '($8) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $3) '0 '0)) '('('"type" '"query"))))
)
