(
(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" '2538) '('"_id" '"23f6cb01-659dbe99-7e714353-94a8e299") '('"_wide_channels" (StructType '('"key" $10) '('"value" $10)))))
(let $12 (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 '('"key" '"value") (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $24 '())))
))) $11))
(let $13 (DqCnBroadcast (TDqOutput $12 '0)))
(let $14 (StructType '('"a.key" $10) '('"a.rn" (DataType 'Uint64)) '('"a.subkey" $10) '('"b.value" $10)))
(let $15 '('('"_logical_id" '2791) '('"_id" '"69aa41b5-49e6baa6-6acc7573-1cf723bb") '('"_wide_channels" $14)))
(let $16 (DqPhyStage '($13) (lambda '($25) (block '(
  (let $26 '('Many 'Hashed 'Compact))
  (let $27 (NarrowSqueezeToDict (ToFlow $25) (lambda '($30 $31) $30) (lambda '($32 $33) (AsStruct '('"key" $32) '('"value" $33))) $26))
  (let $28 (Bool 'true))
  (let $29 (lambda '($39 $40 $41 $42) $40 $39 (Concat $41 $40) $42))
  (return (FromFlow (WideMap (WideSort (FlatMap $27 (lambda '($34) (block '(
    (let $35 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
    (let $36 (YtTable '"Input1" $3 $4 $35 '() (Void) (Void) '"/Root/plato"))
    (let $37 (YtReadTable! world $1 '((YtSection '((YtPath $36 '('"key" '"subkey") (Void) (Void))) '('('"syscolumns" '('"num")))))))
    (let $38 '('0 '0 '1 '1 '2 '2))
    (return (MapJoinCore (DqReadWideWrap $37 '()) $34 'Inner '('1) '('"key") $38 '('"value" '3) '('"a.key") '('"b.key")))
  )))) '('('1 $28) '('0 $28))) $29)))
))) $15))
(let $17 (DqCnMerge (TDqOutput $16 '0) '('('0 '"Asc") '('1 '"Asc"))))
(let $18 (DqPhyStage '($17) (lambda '($43) (FromFlow (NarrowMap (ToFlow $43) (lambda '($44 $45 $46 $47) (AsStruct '('"a.key" $44) '('"a.rn" $45) '('"a.subkey" $46) '('"b.value" $47)))))) '('('"_logical_id" '2803) '('"_id" '"ac30921a-ab21051-ab17f01d-141c6b9e"))))
(let $19 '($12 $16 $18))
(let $20 '('"a.key" '"a.subkey" '"a.rn" '"b.value"))
(let $21 (DqCnResult (TDqOutput $18 '0) $20))
(return (KqpPhysicalQuery '((KqpPhysicalTx $19 '($21) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $14) '0 '0)) '('('"type" '"query"))))
)
