(
(let $1 (DataSource '"yt" '"/Root/plato"))
(let $2 '('NativeYtTypeFlags '0))
(let $3 '('StrictSchema '1))
(let $4 '('UniqueKeys '0))
(let $5 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
(let $6 '('ChunkCount '1))
(let $7 '('ModifyTime '0))
(let $8 '('Revision '0))
(let $9 '('"key" '"value"))
(let $10 (DataType 'Uint64))
(let $11 (OptionalType (DataType 'String)))
(let $12 '('"_wide_channels" (StructType '('"key" $10) '('"value" $11))))
(let $13 '('('"_logical_id" '1524) '('"_id" '"bd77242c-12b6bf08-f390e1c9-4b83672f") $12))
(let $14 (DqPhyStage '() (lambda '() (block '(
  (let $41 '@@["StructType";[["key";["DataType";"Uint64"]];["value";["OptionalType";["DataType";"String"]]]]]@@)
  (let $42 (YqlRowSpec $2 $3 $4 '('Type $41)))
  (let $43 (YtStat '('Id '"Leaves") '('RecordsCount '"17") '('DataSize '"452") $6 $7 $8))
  (let $44 (YtTable '"Leaves" $42 $5 $43 '() (Void) (Void) '"/Root/plato"))
  (let $45 (YtReadTable! world $1 '((YtSection '((YtPath $44 $9 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $45 '())))
))) $13))
(let $15 (DqCnBroadcast (TDqOutput $14 '0)))
(let $16 (lambda '($48 $49) $48))
(let $17 (lambda '($50 $51) (AsStruct '('"key" $50) '('"value" $51))))
(let $18 '('Many 'Hashed 'Compact))
(let $19 '('"key"))
(let $20 (OptionalType $10))
(let $21 (StructType '('"i1.branch" $20) '('"i1.key" $10) '('"i1.leaf" $20) '('"i1.value" $11) '('"i2.key" $10) '('"i2.value" $11)))
(let $22 '('('"_logical_id" '1622) '('"_id" '"da70ad1f-a0877d99-307164f6-4dd5fd2c") '('"_wide_channels" $21)))
(let $23 (DqPhyStage '($15) (lambda '($46) (block '(
  (let $47 (NarrowSqueezeToDict (ToFlow $46) $16 $17 $18))
  (return (FromFlow (FlatMap $47 (lambda '($52) (block '(
    (let $53 '@@["StructType";[["key";["DataType";"Uint64"]];["leaf";["OptionalType";["DataType";"Uint64"]]];["branch";["OptionalType";["DataType";"Uint64"]]];["value";["OptionalType";["DataType";"String"]]]]]@@)
    (let $54 (YqlRowSpec $2 $3 $4 '('Type $53)))
    (let $55 (YtStat '('Id '"Roots") '('RecordsCount '"20") '('DataSize '"1002") $6 $7 $8))
    (let $56 (YtTable '"Roots" $54 $5 $55 '() (Void) (Void) '"/Root/plato"))
    (let $57 '('"branch" '"key" '"leaf" '"value"))
    (let $58 (YtReadTable! world $1 '((YtSection '((YtPath $56 $57 (Void) (Void))) '()))))
    (let $59 '('0 '0 '1 '1 '2 '2 '3 '3))
    (let $60 '('"key" '4 '"value" '5))
    (return (MapJoinCore (WideFilter (DqReadWideWrap $58 '()) (lambda '($61 $62 $63 $64) (Exists $63))) $52 'Inner '('2) $19 $59 $60 '('"i1.leaf") '('"i2.key")))
  ))))))
))) $22))
(let $24 '('('"_logical_id" '1548) '('"_id" '"475a45a2-6d9e3c0b-27b4a4e1-19013dbe") $12))
(let $25 (DqPhyStage '() (lambda '() (block '(
  (let $65 '@@["StructType";[["key";["DataType";"Uint64"]];["leaf";["OptionalType";["DataType";"Uint64"]]];["value";["OptionalType";["DataType";"String"]]]]]@@)
  (let $66 (YqlRowSpec $2 $3 $4 '('Type $65)))
  (let $67 (YtStat '('Id '"Branches") '('RecordsCount '"15") '('DataSize '"578") $6 $7 $8))
  (let $68 (YtTable '"Branches" $66 $5 $67 '() (Void) (Void) '"/Root/plato"))
  (let $69 (YtReadTable! world $1 '((YtSection '((YtPath $68 $9 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $69 '())))
))) $24))
(let $26 (DqCnMap (TDqOutput $23 '0)))
(let $27 (DqCnBroadcast (TDqOutput $25 '0)))
(let $28 (StructType '('"Branch" $11) '('"Key" $10) '('"Leaf" $11) '('"Value" $11)))
(let $29 '('"_wide_channels" $28))
(let $30 '('('"_logical_id" '1815) '('"_id" '"46f54085-b71c1f8d-5217d81c-2f59ac47") $29))
(let $31 (DqPhyStage '($26 $27) (lambda '($70 $71) (block '(
  (let $72 (NarrowSqueezeToDict (ToFlow $71) $16 $17 $18))
  (let $73 (lambda '($90 $91 $92 $93) $93 $90 $92 $91))
  (let $74 (lambda '($94 $95 $96 $97 $98 $99 $100 $101) $94 $95 $96 $97))
  (let $75 (lambda '($102 $103 $104 $105 $106 $107 $108 $109 $110 $111 $112 $113) $110 $111 $112 $113))
  (let $76 (lambda '($114 $115 $116 $117 $118 $119 $120 $121) $118 $119 $120 $121))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (FlatMap $72 (lambda '($77) (block '(
    (let $78 (lambda '($80 $81 $82 $83 $84 $85) $80 $81 $83 $85))
    (let $79 '('1 '0 '2 '1 '3 '2))
    (return (MapJoinCore (WideFilter (WideMap (ToFlow $70) $78) (lambda '($86 $87 $88 $89) (Exists $86))) $77 'Inner '('0) $19 $79 '('"value" '3) '('"i1.branch") '('"i3.key")))
  )))))) '-1073741824 $73 $74 $75 $76))
))) $30))
(let $32 '('0 '1 '2 '3))
(let $33 (DqCnHashShuffle (TDqOutput $31 '0) $32 '0 '"HashV2"))
(let $34 '('('"_logical_id" '2270) '('"_id" '"5e931daf-2eb5e759-71cec3be-7b97326c") $29))
(let $35 (DqPhyStage '($33) (lambda '($122) (block '(
  (let $123 (lambda '($127 $128 $129 $130) $127 $128 $129 $130))
  (let $124 (lambda '($131 $132 $133 $134 $135 $136 $137 $138)))
  (let $125 (WideCombiner (ToFlow (WideFromBlocks $122)) '"" $123 $124 $124 $123))
  (let $126 (Bool 'true))
  (return (FromFlow (WideSort $125 '('('2 $126) '('0 $126)))))
))) $34))
(let $36 (DqCnMerge (TDqOutput $35 '0) '('('2 '"Asc") '('0 '"Asc"))))
(let $37 (DqPhyStage '($36) (lambda '($139) (FromFlow (NarrowMap (ToFlow $139) (lambda '($140 $141 $142 $143) (AsStruct '('"Branch" $140) '('"Key" $141) '('"Leaf" $142) '('"Value" $143)))))) '('('"_logical_id" '2282) '('"_id" '"de8e123e-3ffaee4e-da7f542d-18bf0de3"))))
(let $38 '($14 $23 $25 $31 $35 $37))
(let $39 '('"Key" '"Value" '"Leaf" '"Branch"))
(let $40 (DqCnResult (TDqOutput $37 '0) $39))
(return (KqpPhysicalQuery '((KqpPhysicalTx $38 '($40) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $28) '0 '0)) '('('"type" '"query"))))
)
