(
(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" '3308) '('"_id" '"d7b4c1bb-8d636dfb-48cea2ae-ad0f6cdd") '('"_wide_channels" (StructType '('"key" $11)))))
(let $13 (DqPhyStage '() (lambda '() (block '(
  (let $23 (YtStat '('Id '"Input3") $5 $6 $7 $8 $9))
  (let $24 (YtTable '"Input3" $3 $4 $23 '() (Void) (Void) '"/Root/plato"))
  (let $25 (YtReadTable! world $1 '((YtSection '((YtPath $24 $10 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $25 '())))
))) $12))
(let $14 (DqCnBroadcast (TDqOutput $13 '0)))
(let $15 (OptionalType (DataType 'Int32)))
(let $16 (StructType '('"A.key" $11) '('"B.subkey" $15)))
(let $17 '('('"_logical_id" '3454) '('"_id" '"ed889b6b-74566d1c-a7905517-9003ead8") '('"_wide_channels" $16)))
(let $18 (DqPhyStage '($14) (lambda '($26) (block '(
  (let $27 '('Many 'Hashed 'Compact))
  (let $28 (NarrowSqueezeToDict (ToFlow $26) (lambda '($30) $30) (lambda '($31) (AsStruct '('"key" $31))) $27))
  (let $29 (lambda '($36 $37) $36 (SafeCast $37 $15)))
  (return (FromFlow (WideMap (WideSort (FlatMap $28 (lambda '($32) (block '(
    (let $33 (YtStat '('Id '"Input2") $5 $6 $7 $8 $9))
    (let $34 (YtTable '"Input2" $3 $4 $33 '() (Void) (Void) '"/Root/plato"))
    (let $35 (YtReadTable! world $1 '((YtSection '((YtPath $34 $10 (Void) (Void))) '()))))
    (return (MapJoinCore (DqReadWideWrap $35 '()) $32 'Left '('0) $10 '('0 '0) '('"key" '1) '('"A.key") '('"B.key")))
  )))) '('('0 (Bool 'true)))) $29)))
))) $17))
(let $19 (DqCnMerge (TDqOutput $18 '0) '('('0 '"Asc"))))
(let $20 (DqPhyStage '($19) (lambda '($38) (FromFlow (NarrowMap (ToFlow $38) (lambda '($39 $40) (AsStruct '('"A.key" $39) '('"B.subkey" $40)))))) '('('"_logical_id" '3466) '('"_id" '"882f3ba6-b6c545d8-31a84a-ff3d8c6a"))))
(let $21 '($13 $18 $20))
(let $22 (DqCnResult (TDqOutput $20 '0) '('"A.key" '"B.subkey")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $21 '($22) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $16) '0 '0)) '('('"type" '"query"))))
)
