(
(let $1 (DataType 'String))
(let $2 (OptionalType (DataType 'Uint32)))
(let $3 (OptionalType $1))
(let $4 (StructType '('"strE1" $3) '('"strE1overYson" $3) '('"subkey" $2)))
(let $5 '('('"_logical_id" '834) '('"_id" '"efc3cf45-fdb9e636-9dc9ad48-e5b00c10") '('"_wide_channels" $4)))
(let $6 (DqPhyStage '() (lambda '() (block '(
  (let $11 '@@["StructType";[["key";["OptionalType";["DataType";"String"]]];["subkey";["OptionalType";["DataType";"String"]]]]]@@)
  (let $12 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '0) '('UniqueKeys '0) '('Type $11)))
  (let $13 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $14 (YtStat '('Id '"Input") '('RecordsCount '"7") '('DataSize '"454") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $15 (YtTable '"Input" $12 $13 $14 '() (Void) (Void) '"/Root/plato"))
  (let $16 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $15 '('"_other" '"subkey") (Void) (Void))) '()))))
  (let $17 (Sort (NarrowMap (DqReadWideWrap $16 '()) (lambda '($19 $20) (block '(
    (let $21 (Just $19))
    (let $22 (Nothing (OptionalType (DictType $1 (DataType 'Yson)))))
    (let $23 (TryWeakMemberFromDict $21 $22 'String '"strE1"))
    (let $24 (TryWeakMemberFromDict $21 $22 'Yson '"strE1"))
    (let $25 (TryWeakMemberFromDict $21 $22 'String '"subkey"))
    (return (AsStruct '('"strE1" $23) '('"strE1overYson" (FromYsonSimpleType $24 'String)) '('"subkey" (SafeCast (Coalesce $20 $25) $2))))
  )))) (Bool 'true) (lambda '($26) (Member $26 '"subkey"))))
  (let $18 (lambda '($27) (Member $27 '"strE1") (Member $27 '"strE1overYson") (Member $27 '"subkey")))
  (return (FromFlow (ExpandMap $17 $18)))
))) $5))
(let $7 (DqCnMerge (TDqOutput $6 '0) '('('"2" '"Asc"))))
(let $8 (DqPhyStage '($7) (lambda '($28) (FromFlow (NarrowMap (ToFlow $28) (lambda '($29 $30 $31) (AsStruct '('"strE1" $29) '('"strE1overYson" $30) '('"subkey" $31)))))) '('('"_logical_id" '846) '('"_id" '"ef0cf925-72d18c0-2102146a-9767fddc"))))
(let $9 '('"subkey" '"strE1" '"strE1overYson"))
(let $10 (DqCnResult (TDqOutput $8 '0) $9))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($6 $8) '($10) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $4) '0 '0)) '('('"type" '"query"))))
)
