(
(let $1 (DataType 'String))
(let $2 (OptionalType (DataType 'Int32)))
(let $3 (StructType '('"d1" $2) '('"d3" $2) '('"subkey" (OptionalType $1))))
(let $4 '('('"_logical_id" '808) '('"_id" '"edf32634-cfbc1b94-5ea6100d-9b6745a3") '('"_wide_channels" $3)))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $10 '@@["StructType";[["key";["OptionalType";["DataType";"String"]]];["subkey";["OptionalType";["DataType";"String"]]]]]@@)
  (let $11 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '0) '('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 '"Input3") '('RecordsCount '"5") '('DataSize '"261") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $14 (YtTable '"Input3" $11 $12 $13 '() (Void) (Void) '"/Root/plato"))
  (let $15 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $14 '('"_other" '"subkey") (Void) (Void))) '()))))
  (let $16 (lambda '($17 $18) (block '(
    (let $19 (Just $17))
    (let $20 (Nothing (OptionalType (DictType $1 (DataType 'Yson)))))
    (let $21 (TryWeakMemberFromDict $19 $20 'Int32 '"data1"))
    (let $22 (Just (Int32 '"32")))
    (let $23 (TryWeakMemberFromDict $19 $20 'Int32 '"data3"))
    (return (Coalesce $21 $22) (Coalesce $23 $22) $18)
  ))))
  (return (FromFlow (WideMap (WideSort (DqReadWideWrap $15 '()) '('('1 (Bool 'true)))) $16)))
))) $4))
(let $6 (DqCnMerge (TDqOutput $5 '0) '('('"2" '"Asc"))))
(let $7 (DqPhyStage '($6) (lambda '($24) (FromFlow (NarrowMap (ToFlow $24) (lambda '($25 $26 $27) (AsStruct '('"d1" $25) '('"d3" $26) '('"subkey" $27)))))) '('('"_logical_id" '820) '('"_id" '"1d8a9f64-5266a728-2350bbcd-7a5d59a9"))))
(let $8 '('"subkey" '"d1" '"d3"))
(let $9 (DqCnResult (TDqOutput $7 '0) $8))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($5 $7) '($9) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $3) '0 '0)) '('('"type" '"query"))))
)
