(
(let $1 (DataSource '"yt" '"/Root/plato"))
(let $2 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
(let $3 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('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 '"166"))
(let $7 '('ChunkCount '1))
(let $8 '('ModifyTime '0))
(let $9 '('Revision '0))
(let $10 '('"key" '"subkey" '"value"))
(let $11 (DataType 'String))
(let $12 (OptionalType $11))
(let $13 '"_equijoin_column_0")
(let $14 (StructType '($13 $12) '('"key" $11) '('"subkey" $11) '('"value" $11)))
(let $15 '('('"_logical_id" '1673) '('"_id" '"c98f3d87-ed5da738-91d8113a-5113cdc6") '('"_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 $10 (Void) (Void))) '()))))
  (let $29 (lambda '($30 $31 $32) (block '(
    (let $33 (OptionalType (DataType 'Bool)))
    (let $34 (CallableType '('3) '((ListType $11)) '($12) '($11) '($33 '"DelimeterString") '($33 '"SkipEmpty") '((OptionalType (DataType 'Uint64)) '"Limit")))
    (let $35 (Udf '"String.SplitToList" (Void) (VoidType) '"" $34 (VoidType) '"" '('('"strict"))))
    (return (Head (Apply $35 (Just $30) (String '"_"))) $30 $31 $32)
  ))))
  (return (FromFlow (WideMap (DqReadWideWrap $28 '()) $29)))
))) $15))
(let $17 (DqCnBroadcast (TDqOutput $16 '0)))
(let $18 (StructType '('"a.key" $11) '('"a.subkey" $11) '('"a.value" $11) '('"b.key" $11) '('"b.subkey" $11) '('"b.value" $11)))
(let $19 '('('"_logical_id" '1813) '('"_id" '"7af32fba-9929ca06-5cc55ea7-ba2d0d07") '('"_wide_channels" $18)))
(let $20 (DqPhyStage '($17) (lambda '($36) (block '(
  (let $37 '('Many 'Hashed 'Compact))
  (let $38 (SqueezeToDict (NarrowFlatMap (WideFilter (ToFlow $36) (lambda '($41 $42 $43 $44) (Exists $41))) (lambda '($45 $46 $47 $48) (IfPresent $45 (lambda '($49) (block '(
    (let $50 (AsStruct '($13 $45) '('"key" $46) '('"subkey" $47) '('"value" $48)))
    (return (Just '($49 $50)))
  ))) (Nothing (OptionalType (TupleType $11 $14)))))) (lambda '($51) (Nth $51 '0)) (lambda '($52) (Nth $52 '1)) $37))
  (let $39 (Bool 'true))
  (let $40 '('('0 $39) '('1 $39) '('4 $39)))
  (return (FromFlow (WideSort (FlatMap $38 (lambda '($53) (block '(
    (let $54 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
    (let $55 (YtTable '"Input1" $3 $4 $54 '() (Void) (Void) '"/Root/plato"))
    (let $56 (YtReadTable! world $1 '((YtSection '((YtPath $55 $10 (Void) (Void))) '()))))
    (let $57 '('0 '0 '1 '1 '2 '2))
    (let $58 '('"key" '3 '"subkey" '4 '"value" '5))
    (return (MapJoinCore (DqReadWideWrap $56 '()) $53 'Inner '('0) '($13) $57 $58 '('"a.key") '('"b._equijoin_column_0")))
  )))) $40)))
))) $19))
(let $21 '('('0 '"Asc") '('1 '"Asc") '('4 '"Asc")))
(let $22 (DqCnMerge (TDqOutput $20 '0) $21))
(let $23 (DqPhyStage '($22) (lambda '($59) (FromFlow (NarrowMap (ToFlow $59) (lambda '($60 $61 $62 $63 $64 $65) (AsStruct '('"a.key" $60) '('"a.subkey" $61) '('"a.value" $62) '('"b.key" $63) '('"b.subkey" $64) '('"b.value" $65)))))) '('('"_logical_id" '1825) '('"_id" '"e88afb2c-21f464b8-7f620249-eda0ceb1"))))
(let $24 '($16 $20 $23))
(let $25 (DqCnResult (TDqOutput $23 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $24 '($25) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $18) '0 '0)) '('('"type" '"query"))))
)
