(
(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 (YtStat '('Id '"Input") '('RecordsCount '"3") '('DataSize '"132") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $6 (YtTable '"Input" $3 $4 $5 '() (Void) (Void) '"/Root/plato"))
(let $7 (DataType 'String))
(let $8 '('('"_logical_id" '3780) '('"_id" '"c0ff2f8-e5943aae-9b26c572-945db68d") '('"_wide_channels" (StructType '('"key" $7) '('"value" $7)))))
(let $9 (DqPhyStage '() (lambda '() (block '(
  (let $19 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"value") (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $19 '())))
))) $8))
(let $10 (DqCnBroadcast (TDqOutput $9 '0)))
(let $11 (StructType '('"a.key" $7) '('"a.subkey" $7) '('"b.value" (OptionalType $7))))
(let $12 '('('"_logical_id" '3910) '('"_id" '"4c3484-6f92b26a-b83c5b19-2a53ee1") '('"_wide_channels" $11)))
(let $13 (DqPhyStage '($10) (lambda '($20) (block '(
  (let $21 '('Many 'Hashed 'Compact))
  (let $22 (NarrowSqueezeToDict (ToFlow $20) (lambda '($23 $24) $23) (lambda '($25 $26) (AsStruct '('"key" $25) '('"value" $26))) $21))
  (return (FromFlow (WideSort (FlatMap $22 (lambda '($27) (block '(
    (let $28 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"subkey") (Void) (Void))) '()))))
    (let $29 '('0 '0 '1 '1))
    (return (MapJoinCore (DqReadWideWrap $28 '()) $27 'Left '('0) '('"key") $29 '('"value" '2) '('"a.key") '('"b.key")))
  )))) '('('0 (Bool 'true))))))
))) $12))
(let $14 (DqCnMerge (TDqOutput $13 '0) '('('0 '"Asc"))))
(let $15 (DqPhyStage '($14) (lambda '($30) (FromFlow (NarrowMap (ToFlow $30) (lambda '($31 $32 $33) (AsStruct '('"a.key" $31) '('"a.subkey" $32) '('"b.value" $33)))))) '('('"_logical_id" '3922) '('"_id" '"af9bf342-58dd97c6-fd1ce90a-4af96fae"))))
(let $16 '($9 $13 $15))
(let $17 '('"a.key" '"a.subkey" '"b.value"))
(let $18 (DqCnResult (TDqOutput $15 '0) $17))
(return (KqpPhysicalQuery '((KqpPhysicalTx $16 '($18) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $11) '0 '0)) '('('"type" '"query"))))
)
