(
(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" '"value"))
(let $11 (DataType 'String))
(let $12 (StructType '('"key" $11) '('"value" $11)))
(let $13 '('"_wide_channels" $12))
(let $14 '('('"_logical_id" '1178) '('"_id" '"fb593191-97596eba-13d50977-1936d310") $13))
(let $15 (DqPhyStage '() (lambda '() (block '(
  (let $32 (YtStat '('Id '"Input3") $5 $6 $7 $8 $9))
  (let $33 (YtTable '"Input3" $3 $4 $32 '() (Void) (Void) '"/Root/plato"))
  (let $34 (YtReadTable! world $1 '((YtSection '((YtPath $33 $10 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $34 '())))
))) $14))
(let $16 (DqCnBroadcast (TDqOutput $15 '0)))
(let $17 (lambda '($38 $39) $38))
(let $18 (lambda '($40 $41) (AsStruct '('"key" $40) '('"value" $41))))
(let $19 '('0))
(let $20 (lambda '($47 $48 $49) $49))
(let $21 (lambda '($50 $51 $52 $53) (AggrMax $52 $53)))
(let $22 (lambda '($54 $55) $54 $55))
(let $23 '('('"_logical_id" '1309) '('"_id" '"542b9825-10830319-40b678fd-4ae41102") '('"_wide_channels" (StructType '('"Input1.key" $11) '('_yql_agg_0 $11)))))
(let $24 (DqPhyStage '($16) (lambda '($35) (block '(
  (let $36 '('Many 'Hashed 'Compact))
  (let $37 (NarrowSqueezeToDict (ToFlow $35) $17 $18 $36))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (FlatMap $37 (lambda '($42) (block '(
    (let $43 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
    (let $44 (YtTable '"Input1" $3 $4 $43 '() (Void) (Void) '"/Root/plato"))
    (let $45 '('"key"))
    (let $46 (YtReadTable! world $1 '((YtSection '((YtPath $44 $45 (Void) (Void))) '()))))
    (return (MapJoinCore (DqReadWideWrap $46 '()) $42 'Inner $19 $45 '('0 '0) '('"value" '1) '('"Input1.key") '('"Input3.key")))
  )))))) '-1073741824 $17 $20 $21 $22))
))) $23))
(let $25 (DqCnHashShuffle (TDqOutput $24 '0) $19 '0 '"HashV2"))
(let $26 '('('"_logical_id" '2049) '('"_id" '"5df1cc-6b5aeb21-26a1d0b9-8c53c16c") $13))
(let $27 (DqPhyStage '($25) (lambda '($56) (block '(
  (let $57 (WideCombiner (ToFlow (WideFromBlocks $56)) '"" $17 $20 $21 $22))
  (return (FromFlow (WideSort $57 '('('0 (Bool 'true))))))
))) $26))
(let $28 (DqCnMerge (TDqOutput $27 '0) '('('0 '"Asc"))))
(let $29 (DqPhyStage '($28) (lambda '($58) (FromFlow (NarrowMap (ToFlow $58) $18))) '('('"_logical_id" '2061) '('"_id" '"45d1daf2-a11656ce-1f1563da-1a4862c4"))))
(let $30 '($15 $24 $27 $29))
(let $31 (DqCnResult (TDqOutput $29 '0) $10))
(return (KqpPhysicalQuery '((KqpPhysicalTx $30 '($31) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $12) '0 '0)) '('('"type" '"query"))))
)
