(
(let $1 (DataSource '"yt" '"/Root/plato"))
(let $2 '@@["StructType";[["key";["OptionalType";["DataType";"String"]]];["subkey";["OptionalType";["DataType";"String"]]]]]@@)
(let $3 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '0) '('UniqueKeys '0) '('Type $2)))
(let $4 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
(let $5 '('RecordsCount '"4"))
(let $6 '('DataSize '"170"))
(let $7 '('ChunkCount '1))
(let $8 '('ModifyTime '0))
(let $9 '('Revision '0))
(let $10 (DataType 'String))
(let $11 (Nothing (OptionalType (DictType $10 (DataType 'Yson)))))
(let $12 '"_equijoin_column_1")
(let $13 (OptionalType $10))
(let $14 (StructType '($12 $13) '('"_other" (DictType $10 $10))))
(let $15 '('('"_logical_id" '2536) '('"_id" '"78f337aa-5e9dbede-1b64b67e-dba6715b") '('"_wide_channels" $14)))
(let $16 (DqPhyStage '() (lambda '() (block '(
  (let $26 (YtStat '('Id '"Input2") $5 $6 $7 $8 $9))
  (let $27 (YtTable '"Input2" $3 $4 $26 '() (Void) (Void) '"/Root/plato"))
  (let $28 (YtReadTable! world $1 '((YtSection '((YtPath $27 '('"_other") (Void) (Void))) '()))))
  (let $29 (lambda '($30) (block '(
    (let $31 (TryWeakMemberFromDict (Just $30) $11 'String '"value2"))
    (return $31 $30)
  ))))
  (return (FromFlow (WideMap (DqReadWideWrap $28 '()) $29)))
))) $15))
(let $17 (DqCnBroadcast (TDqOutput $16 '0)))
(let $18 (StructType '('"i1v1" $13) '('"i1v2" $13) '('"i2v1" $13) '('"i2v2" $13) '('"sk" $13)))
(let $19 '('('"_logical_id" '2778) '('"_id" '"7056bd16-73bbff7a-b96086a1-5623078f") '('"_wide_channels" $18)))
(let $20 (DqPhyStage '($17) (lambda '($32) (block '(
  (let $33 '('Many 'Hashed 'Compact))
  (let $34 (SqueezeToDict (NarrowFlatMap (WideFilter (ToFlow $32) (lambda '($36 $37) (Exists $36))) (lambda '($38 $39) (IfPresent $38 (lambda '($40) (Just '($40 (AsStruct '($12 $38) '('"_other" $39))))) (Nothing (OptionalType (TupleType $10 $14)))))) (lambda '($41) (Nth $41 '0)) (lambda '($42) (Nth $42 '1)) $33))
  (let $35 (lambda '($59 $60 $61) (block '(
    (let $62 (Just $59))
    (let $63 (TryWeakMemberFromDict $62 $11 'String '"value1"))
    (let $64 (TryWeakMemberFromDict $62 $11 'String '"value2"))
    (let $65 (Just $61))
    (let $66 (TryWeakMemberFromDict $65 $11 'String '"value1"))
    (let $67 (TryWeakMemberFromDict $65 $11 'String '"value2"))
    (return (Coalesce $63 (Just (String '"funny"))) (Coalesce $64 (Just (String '"bunny"))) (Coalesce $66 (Just (String '"short"))) (Coalesce $67 (Just (String '"circuit"))) $60)
  ))))
  (return (FromFlow (WideMap (WideSort (FlatMap $34 (lambda '($43) (block '(
    (let $44 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
    (let $45 (YtTable '"Input1" $3 $4 $44 '() (Void) (Void) '"/Root/plato"))
    (let $46 (YtReadTable! world $1 '((YtSection '((YtPath $45 '('"_other" '"subkey") (Void) (Void))) '()))))
    (let $47 (lambda '($50 $51) (block '(
      (let $52 (TryWeakMemberFromDict (Just $50) $11 'String '"value1"))
      (return $50 $51 $52)
    ))))
    (let $48 (lambda '($56 $57 $58) $58 $56 $57))
    (let $49 '('1 '0 '2 '1))
    (return (MapJoinCore (WideMap (WideFilter (WideMap (DqReadWideWrap $46 '()) $47) (lambda '($53 $54 $55) (Exists $55))) $48) $43 'Inner '('0) '($12) $49 '('"_other" '2) '('"i1._equijoin_column_0") '('"i2._equijoin_column_1")))
  )))) '('('1 (Bool 'true)))) $35)))
))) $19))
(let $21 (DqCnMerge (TDqOutput $20 '0) '('('"4" '"Asc"))))
(let $22 (DqPhyStage '($21) (lambda '($68) (FromFlow (NarrowMap (ToFlow $68) (lambda '($69 $70 $71 $72 $73) (AsStruct '('"i1v1" $69) '('"i1v2" $70) '('"i2v1" $71) '('"i2v2" $72) '('"sk" $73)))))) '('('"_logical_id" '2790) '('"_id" '"52ee0cd4-bce53a21-5b07abca-d854933f"))))
(let $23 '($16 $20 $22))
(let $24 '('"sk" '"i1v1" '"i1v2" '"i2v1" '"i2v2"))
(let $25 (DqCnResult (TDqOutput $22 '0) $24))
(return (KqpPhysicalQuery '((KqpPhysicalTx $23 '($25) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $18) '0 '0)) '('('"type" '"query"))))
)
