(
(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"))
(let $11 (DataType 'String))
(let $12 '('('"_logical_id" '1909) '('"_id" '"42ebdce8-a46206fd-fde47ca6-e00bfd27") '('"_wide_channels" (StructType '('"key" $11)))))
(let $13 (DqPhyStage '() (lambda '() (block '(
  (let $22 (YtStat '('Id '"Input2") $5 $6 $7 $8 $9))
  (let $23 (YtTable '"Input2" $3 $4 $22 '() (Void) (Void) '"/Root/plato"))
  (let $24 (YtReadTable! world $1 '((YtSection '((YtPath $23 $10 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $24 '())))
))) $12))
(let $14 (DqCnBroadcast (TDqOutput $13 '0)))
(let $15 (StructType '('"a.subkey" $11) '('"akey" $11)))
(let $16 '('('"_logical_id" '2063) '('"_id" '"d2706128-4adae971-f3d81031-e20f8190") '('"_wide_channels" $15)))
(let $17 (DqPhyStage '($14) (lambda '($25) (block '(
  (let $26 '('One 'Hashed 'Compact))
  (let $27 (NarrowSqueezeToDict (ToFlow $25) (lambda '($29) $29) (lambda '($30) (Void)) $26))
  (let $28 (lambda '($36 $37) (Concat $37 $36) $36))
  (return (FromFlow (WideMap (WideSort (FlatMap $27 (lambda '($31) (block '(
    (let $32 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
    (let $33 (YtTable '"Input1" $3 $4 $32 '() (Void) (Void) '"/Root/plato"))
    (let $34 (YtReadTable! world $1 '((YtSection '((YtPath $33 '('"key" '"subkey") (Void) (Void))) '()))))
    (let $35 '('0 '0 '1 '1))
    (return (MapJoinCore (DqReadWideWrap $34 '()) $31 'LeftSemi '('0) $10 $35 '() '('"a.key") '('"b.key")))
  )))) '('('0 (Bool 'true)))) $28)))
))) $16))
(let $18 (DqCnMerge (TDqOutput $17 '0) '('('1 '"Asc"))))
(let $19 (DqPhyStage '($18) (lambda '($38) (FromFlow (NarrowMap (ToFlow $38) (lambda '($39 $40) (AsStruct '('"a.subkey" $39) '('"akey" $40)))))) '('('"_logical_id" '2075) '('"_id" '"a1789e20-772e3090-36ab0399-eb07e799"))))
(let $20 '($13 $17 $19))
(let $21 (DqCnResult (TDqOutput $19 '0) '('"akey" '"a.subkey")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $20 '($21) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $15) '0 '0)) '('('"type" '"query"))))
)
