(
(let $1 '@@["StructType";[["key";["OptionalType";["DataType";"String"]]];["subkey";["OptionalType";["DataType";"String"]]]]]@@)
(let $2 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '0) '('UniqueKeys '0) '('Type $1)))
(let $3 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
(let $4 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"170") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $5 (YtTable '"Input" $2 $3 $4 '() (Void) (Void) '"/Root/plato"))
(let $6 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $5 '('"_other" '"key") (Void) (Void))) '()))))
(let $7 (DqReadWideWrap $6 '()))
(let $8 (DataType 'String))
(let $9 '('"_logical_id" '1201))
(let $10 (OptionalType $8))
(let $11 (StructType '('"key" $10) '('"value" $10)))
(let $12 '('"_wide_channels" $11))
(let $13 '($9 '('"_id" '"96995fb3-eef22178-a2ab6b13-29be855d") $12))
(let $14 (DqPhyStage '() (lambda '() (block '(
  (let $24 (lambda '($25 $26) (block '(
    (let $27 (TryWeakMemberFromDict (Just $25) (Nothing (OptionalType (DictType $8 (DataType 'Yson)))) 'String '"value1"))
    (return $26 (Coalesce $27 (Just (String '"funny"))))
  ))))
  (return (FromFlow (WideMap $7 $24)))
))) $13))
(let $15 '($9 '('"_id" '"fc072e5-1fd769dd-6d79a9c-c7ca89f4") $12))
(let $16 (DqPhyStage '() (lambda '() (block '(
  (let $28 (lambda '($29 $30) $30 (Lookup $29 (String '"value1"))))
  (return (FromFlow (WideMap $7 $28)))
))) $15))
(let $17 (DqCnParallelUnionAll (TDqOutput $14 '0)))
(let $18 (DqCnParallelUnionAll (TDqOutput $16 '0)))
(let $19 (DqPhyStage '($17 $18) (lambda '($31 $32) (block '(
  (let $33 (lambda '($34 $35) (AsStruct '('"key" $34) '('"value" $35))))
  (return (FromFlow (Extend (NarrowMap (ToFlow $31) $33) (NarrowMap (ToFlow $32) $33))))
))) '('('"_logical_id" '1245) '('"_id" '"3cee4a0b-98ea972b-4bdb3e6c-e5903548"))))
(let $20 (DqCnUnionAll (TDqOutput $19 '0)))
(let $21 (DqPhyStage '($20) (lambda '($36) $36) '('('"_logical_id" '1506) '('"_id" '"f8aea072-a750f898-f122f2b4-62030979"))))
(let $22 '($14 $16 $19 $21))
(let $23 (DqCnResult (TDqOutput $21 '0) '('"key" '"value")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $22 '($23) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $11) '0 '0)) '('('"type" '"query"))))
)
