(
(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 '('('"_logical_id" '1047) '('"_id" '"b228ccf5-abf11366-fbb44fa5-b82486fb") '('"_wide_channels" (StructType '('"key" $10) '('"value" $10)))))
(let $12 (DqPhyStage '() (lambda '() (block '(
  (let $22 (YtStat '('Id '"Input3") $5 $6 $7 $8 $9))
  (let $23 (YtTable '"Input3" $3 $4 $22 '() (Void) (Void) '"/Root/plato"))
  (let $24 (YtReadTable! world $1 '((YtSection '((YtPath $23 '('"key" '"value") (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $24 '())))
))) $11))
(let $13 (DqCnBroadcast (TDqOutput $12 '0)))
(let $14 (StructType '('"Input1.key" $10) '('"Input1.subkey" $10) '('"Input3.value" (OptionalType $10))))
(let $15 '('('"_logical_id" '1177) '('"_id" '"b3853678-558f5d41-827dbd5e-244a00cd") '('"_wide_channels" $14)))
(let $16 (DqPhyStage '($13) (lambda '($25) (block '(
  (let $26 '('Many 'Hashed 'Compact))
  (let $27 (NarrowSqueezeToDict (ToFlow $25) (lambda '($28 $29) $28) (lambda '($30 $31) (AsStruct '('"key" $30) '('"value" $31))) $26))
  (return (FromFlow (WideSort (FlatMap $27 (lambda '($32) (block '(
    (let $33 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
    (let $34 (YtTable '"Input1" $3 $4 $33 '() (Void) (Void) '"/Root/plato"))
    (let $35 (YtReadTable! world $1 '((YtSection '((YtPath $34 '('"key" '"subkey") (Void) (Void))) '()))))
    (let $36 '('0 '0 '1 '1))
    (return (MapJoinCore (DqReadWideWrap $35 '()) $32 'Left '('0) '('"key") $36 '('"value" '2) '('"Input1.key") '('"Input3.key")))
  )))) '('('0 (Bool 'true))))))
))) $15))
(let $17 (DqCnMerge (TDqOutput $16 '0) '('('0 '"Asc"))))
(let $18 (DqPhyStage '($17) (lambda '($37) (FromFlow (NarrowMap (ToFlow $37) (lambda '($38 $39 $40) (AsStruct '('"Input1.key" $38) '('"Input1.subkey" $39) '('"Input3.value" $40)))))) '('('"_logical_id" '1189) '('"_id" '"b3e76515-3b33fec6-ae0a4303-2ee59864"))))
(let $19 '($12 $16 $18))
(let $20 '('"Input1.key" '"Input1.subkey" '"Input3.value"))
(let $21 (DqCnResult (TDqOutput $18 '0) $20))
(return (KqpPhysicalQuery '((KqpPhysicalTx $19 '($21) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $14) '0 '0)) '('('"type" '"query"))))
)
