(
(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 '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $6 (YtTable '"Input" $3 $4 $5 '() (Void) (Void) '"/Root/plato"))
(let $7 '('"key"))
(let $8 (lambda '() (block '(
  (let $57 (YtReadTable! world $1 '((YtSection '((YtPath $6 $7 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $57 '())))
))))
(let $9 '('"_logical_id" '3127))
(let $10 (DataType 'String))
(let $11 '('"_wide_channels" (StructType '('"key" $10))))
(let $12 '($9 '('"_id" '"229be29d-8d7b8c5b-a3dff3d-8cdd884f") $11))
(let $13 (DqPhyStage '() $8 $12))
(let $14 (DqCnBroadcast (TDqOutput $13 '0)))
(let $15 (lambda '($63) $63))
(let $16 (lambda '($64) (AsStruct '('"key" $64))))
(let $17 '('Many 'Hashed 'Compact))
(let $18 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"subkey") (Void) (Void))) '()))))
(let $19 (DqReadWideWrap $18 '()))
(let $20 '('0))
(let $21 '('"t1.key"))
(let $22 '('"t2.key"))
(let $23 (lambda '($67 $68) $67 $68))
(let $24 '('"_logical_id" '2821))
(let $25 '('kk $10))
(let $26 '($24 '('"_id" '"6db4807a-a6bfce74-53451fbe-366efca2") '('"_wide_channels" (StructType $25 '('"t1.subkey" $10)))))
(let $27 (DqPhyStage '($14) (lambda '($58) (block '(
  (let $59 (NarrowSqueezeToDict (ToFlow $58) $15 $16 $17))
  (let $60 (lambda '($69 $70 $71 $72) $69 $70))
  (let $61 (lambda '($73 $74 $75 $76 $77 $78) $77 $78))
  (let $62 (lambda '($79 $80 $81 $82) $81 $82))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (FlatMap $59 (lambda '($65) (block '(
    (let $66 '('0 '0 '1 '1))
    (return (MapJoinCore $19 $65 'Inner $20 $7 $66 '() $21 $22))
  )))))) '-1073741824 $23 $60 $61 $62))
))) $26))
(let $28 (DqCnHashShuffle (TDqOutput $27 '0) '('0 '1) '0 '"HashV2"))
(let $29 '('"_partition_mode" '"aggregate"))
(let $30 (OptionalType $10))
(let $31 (StructType '('kk $30) '('"subkey" $30)))
(let $32 '('"_wide_channels" $31))
(let $33 '('('"_logical_id" '2677) '('"_id" '"1673c10e-a9400c3f-19a26dc5-9b76ffaf") $29 $32))
(let $34 (DqPhyStage '($28) (lambda '($83) (block '(
  (let $84 (lambda '($87 $88 $89 $90)))
  (let $85 (WideCombiner (ToFlow (WideFromBlocks $83)) '"" $23 $84 $84 $23))
  (let $86 (lambda '($91 $92) (Just $91) (Just $92)))
  (return (FromFlow (WideMap $85 $86)))
))) $33))
(let $35 '($9 '('"_id" '"23cd774f-bbd1347e-cd46a6af-3b77e615") $11))
(let $36 (DqPhyStage '() $8 $35))
(let $37 (DqCnBroadcast (TDqOutput $36 '0)))
(let $38 '($24 '('"_id" '"8babb699-60930c1-b63b7931-1163b61c") '('"_wide_channels" (StructType $25))))
(let $39 (DqPhyStage '($37) (lambda '($93) (block '(
  (let $94 (NarrowSqueezeToDict (ToFlow $93) $15 $16 $17))
  (let $95 (lambda '($97 $98) $97))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (FlatMap $94 (lambda '($96) (MapJoinCore (WideMap $19 $95) $96 'Inner $20 $7 '('0 '0) '() $21 $22))))) '-1073741824 $15 $95 (lambda '($99 $100 $101) $101) (lambda '($102 $103) $103)))
))) $38))
(let $40 (DqCnHashShuffle (TDqOutput $39 '0) $20 '0 '"HashV2"))
(let $41 (Nothing $30))
(let $42 '('('"_logical_id" '2903) '('"_id" '"bfe82300-34bf7604-feb0bef2-77bc08f9") $29 $32))
(let $43 (DqPhyStage '($40) (lambda '($104) (block '(
  (let $105 (lambda '($108 $109)))
  (let $106 (WideCombiner (ToFlow (WideFromBlocks $104)) '"" $15 $105 $105 $15))
  (let $107 (lambda '($110) (Just $110) $41))
  (return (FromFlow (WideMap $106 $107)))
))) $42))
(let $44 '('('"_logical_id" '2937) '('"_id" '"e0f9c194-5bfa76d1-a269b669-12428d0a") $32))
(let $45 (DqPhyStage '() (lambda '() (block '(
  (let $111 (lambda '($112) (Member $112 'kk) (Member $112 '"subkey")))
  (return (FromFlow (ExpandMap (ToFlow (AsList (AsStruct '('kk $41) '('"subkey" $41)))) $111)))
))) $44))
(let $46 (DqCnParallelUnionAll (TDqOutput $34 '0)))
(let $47 (DqCnParallelUnionAll (TDqOutput $43 '0)))
(let $48 (DqCnParallelUnionAll (TDqOutput $45 '0)))
(let $49 '($46 $47 $48))
(let $50 (lambda '($120 $121) (AsStruct '('kk $120) '('"subkey" $121))))
(let $51 '('('"_logical_id" '2998) '('"_id" '"24ddeb2-f49bef9-646b20ea-bbb706ee") $32))
(let $52 (DqPhyStage $49 (lambda '($113 $114 $115) (block '(
  (let $116 (Extend (NarrowMap (ToFlow $113) $50) (NarrowMap (ToFlow $114) $50) (NarrowMap (ToFlow $115) $50)))
  (let $117 (Bool 'true))
  (let $118 (Sort $116 '($117 $117) (lambda '($122) '((Member $122 'kk) (Member $122 '"subkey")))))
  (let $119 (lambda '($123) (Member $123 'kk) (Member $123 '"subkey")))
  (return (FromFlow (ExpandMap $118 $119)))
))) $51))
(let $53 (DqCnMerge (TDqOutput $52 '0) '('('0 '"Asc") '('1 '"Asc"))))
(let $54 (DqPhyStage '($53) (lambda '($124) (FromFlow (NarrowMap (ToFlow $124) $50))) '('('"_logical_id" '3010) '('"_id" '"4436589f-e3b79bba-a1393277-ebf68713"))))
(let $55 '($13 $27 $34 $36 $39 $43 $45 $52 $54))
(let $56 (DqCnResult (TDqOutput $54 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $55 '($56) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $31) '0 '0)) '('('"type" '"query"))))
)
