(
(let $1 (DataType 'String))
(let $2 (DqPhyStage '() (lambda '() (block '(
  (let $6 '@@["StructType";[["yandexuid";["OptionalType";["DataType";"Uint64"]]]]]@@)
  (let $7 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '0) '('UniqueKeys '0) '('Type $6)))
  (let $8 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $9 (YtStat '('Id '"Input") '('RecordsCount '"5") '('DataSize '"413") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $10 (YtTable '"Input" $7 $8 $9 '() (Void) (Void) '"/Root/plato"))
  (let $11 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $10 '('"_other" '"yandexuid") (Void) (Void))) '()))))
  (return (FromFlow (NarrowMap (DqReadWideWrap $11 '()) (lambda '($12 $13) (block '(
    (let $14 (Just $12))
    (let $15 (Nothing (OptionalType (DictType $1 (DataType 'Yson)))))
    (let $16 (TryWeakMemberFromDict $14 $15 'String '"email"))
    (let $17 (TryWeakMemberFromDict $14 $15 'Uint64 '"yandexuid"))
    (return (AsStruct '('"email" $16) '('"yandexuid" (Coalesce $13 $17))))
  ))))))
))) '('('"_logical_id" '666) '('"_id" '"5d47c52a-6a9f5ac3-9a524ab4-b2b7f19e"))))
(let $3 (DqCnUnionAll (TDqOutput $2 '0)))
(let $4 (DqPhyStage '($3) (lambda '($18) $18) '('('"_logical_id" '717) '('"_id" '"92d32b19-2117fb08-82cddbfd-8ca285b1"))))
(let $5 (DqCnResult (TDqOutput $4 '0) '('"email" '"yandexuid")))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($2 $4) '($5) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"email" (OptionalType $1)) '('"yandexuid" (OptionalType (DataType 'Uint64))))) '0 '0)) '('('"type" '"query"))))
)
