(
(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 (DataType 'String))
(let $11 '('"key" $10))
(let $12 '('"value" $10))
(let $13 '('('"_logical_id" '1769) '('"_id" '"3835907e-d4558cce-464a835b-7c3ef288") '('"_wide_channels" (StructType $11 $12))))
(let $14 (DqPhyStage '() (lambda '() (block '(
  (let $24 (YtStat '('Id '"Input3") $5 $6 $7 $8 $9))
  (let $25 (YtTable '"Input3" $3 $4 $24 '() (Void) (Void) '"/Root/plato"))
  (let $26 (YtReadTable! world $1 '((YtSection '((YtPath $25 '('"key" '"value") (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $26 '())))
))) $13))
(let $15 (DqCnBroadcast (TDqOutput $14 '0)))
(let $16 (StructType $11 '('"subkey" $10) $12))
(let $17 '('('"_logical_id" '1963) '('"_id" '"ed61d737-65c60626-99dbef95-d1fd0457") '('"_wide_channels" $16)))
(let $18 (DqPhyStage '($15) (lambda '($27) (block '(
  (let $28 '('Many 'Hashed 'Compact))
  (let $29 (NarrowSqueezeToDict (ToFlow $27) (lambda '($31 $32) $31) (lambda '($33 $34) (AsStruct '('"key" $33) '('"value" $34))) $28))
  (let $30 (lambda '($40 $41 $42) $40 $41 (Concat $42 $42)))
  (return (FromFlow (WideMap (WideSort (FlatMap $29 (lambda '($35) (block '(
    (let $36 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
    (let $37 (YtTable '"Input1" $3 $4 $36 '() (Void) (Void) '"/Root/plato"))
    (let $38 (YtReadTable! world $1 '((YtSection '((YtPath $37 '('"key" '"subkey") (Void) (Void))) '()))))
    (let $39 '('0 '0 '1 '1))
    (return (MapJoinCore (DqReadWideWrap $38 '()) $35 'Inner '('0) '('"key") $39 '('"value" '2) '('"Input1.key") '('"selected.key")))
  )))) '('('0 (Bool 'false)))) $30)))
))) $17))
(let $19 (DqCnMerge (TDqOutput $18 '0) '('('0 '"Desc"))))
(let $20 (DqPhyStage '($19) (lambda '($43) (FromFlow (NarrowMap (ToFlow $43) (lambda '($44 $45 $46) (AsStruct '('"key" $44) '('"subkey" $45) '('"value" $46)))))) '('('"_logical_id" '1975) '('"_id" '"1e048641-1eb68e99-e1a9a47a-4c1699f4"))))
(let $21 '($14 $18 $20))
(let $22 '('"key" '"subkey" '"value"))
(let $23 (DqCnResult (TDqOutput $20 '0) $22))
(return (KqpPhysicalQuery '((KqpPhysicalTx $21 '($23) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $16) '0 '0)) '('('"type" '"query"))))
)
