(
(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 '('"value" $10))
(let $12 '('('"_logical_id" '1394) '('"_id" '"f902d2c4-f5b1f3f4-a6557716-d86c713f") '('"_wide_channels" (StructType '('"key" $10) $11))))
(let $13 (DqPhyStage '() (lambda '() (block '(
  (let $27 (YtStat '('Id '"Input3") $5 $6 $7 $8 $9))
  (let $28 (YtTable '"Input3" $3 $4 $27 '() (Void) (Void) '"/Root/plato"))
  (let $29 (YtReadTable! world $1 '((YtSection '((YtPath $28 '('"key" '"value") (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $29 '())))
))) $12))
(let $14 (DqCnBroadcast (TDqOutput $13 '0)))
(let $15 (lambda '($50 $51) $51 $50))
(let $16 '('keyz $10))
(let $17 '('('"_logical_id" '1586) '('"_id" '"3bc8b189-2656ef2c-7259238c-988ca45f") '('"_wide_channels" (StructType '('_yql_agg_0 $10) $16))))
(let $18 (DqPhyStage '($14) (lambda '($30) (block '(
  (let $31 (lambda '($34 $35) $34))
  (let $32 '('Many 'Hashed 'Compact))
  (let $33 (NarrowSqueezeToDict (ToFlow $30) $31 (lambda '($36 $37) (AsStruct '('"key" $36) '('"value" $37))) $32))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (FlatMap $33 (lambda '($38) (block '(
    (let $39 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
    (let $40 (YtTable '"Input1" $3 $4 $39 '() (Void) (Void) '"/Root/plato"))
    (let $41 '('"key"))
    (let $42 (YtReadTable! world $1 '((YtSection '((YtPath $40 $41 (Void) (Void))) '()))))
    (return (MapJoinCore (DqReadWideWrap $42 '()) $38 'Inner '('0) $41 '('0 '0) '('"value" '1) '('"Input1.key") '('"Input3.key")))
  )))))) '-1073741824 $31 (lambda '($43 $44 $45) $45) (lambda '($46 $47 $48 $49) (AggrMax $48 $49)) $15))
))) $17))
(let $19 (DqCnHashShuffle (TDqOutput $18 '0) '('1) '0 '"HashV2"))
(let $20 (StructType $16 $11))
(let $21 '('('"_logical_id" '2378) '('"_id" '"111df9a8-998ef12f-6dcadc6d-56b632d0") '('"_wide_channels" $20)))
(let $22 (DqPhyStage '($19) (lambda '($52) (block '(
  (let $53 (WideCombiner (ToFlow (WideFromBlocks $52)) '"" (lambda '($55 $56) $56) (lambda '($57 $58 $59) $58) (lambda '($60 $61 $62 $63) (AggrMax $61 $63)) $15))
  (let $54 (lambda '($64 $65) $65 $64))
  (return (FromFlow (WideMap (WideSort $53 '('('1 (Bool 'true)))) $54)))
))) $21))
(let $23 (DqCnMerge (TDqOutput $22 '0) '('('0 '"Asc"))))
(let $24 (DqPhyStage '($23) (lambda '($66) (FromFlow (NarrowMap (ToFlow $66) (lambda '($67 $68) (AsStruct '('keyz $67) '('"value" $68)))))) '('('"_logical_id" '2390) '('"_id" '"9151d78c-b7c349b-bfe7462e-dade286d"))))
(let $25 '($13 $18 $22 $24))
(let $26 (DqCnResult (TDqOutput $24 '0) '('keyz '"value")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $25 '($26) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $20) '0 '0)) '('('"type" '"query"))))
)
