(
(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 '"14") '('DataSize '"614") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $6 (YtTable '"Input" $3 $4 $5 '() (Void) (Void) '"/Root/plato"))
(let $7 (OptionalType (DataType 'Uint32)))
(let $8 (DataType 'Int32))
(let $9 '('"mod" (OptionalType $8)))
(let $10 (DataType 'String))
(let $11 (StructType $9 '('"struct_field" (StructType '('"kk" $10) '('"sk" $10)))))
(let $12 '('('"_logical_id" '2135) '('"_id" '"88e6f278-203961f2-1003b596-1c062896") '('"_wide_channels" $11)))
(let $13 (DqPhyStage '() (lambda '() (block '(
  (let $24 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"subkey") (Void) (Void))) '()))))
  (let $25 (lambda '($26 $27) (% (SafeCast $26 $7) (Int32 '"10")) (AsStruct '('"kk" $26) '('"sk" $27))))
  (return (FromFlow (WideMap (DqReadWideWrap $24 '()) $25)))
))) $12))
(let $14 (DqCnBroadcast (TDqOutput $13 '0)))
(let $15 (StructType '('"key" $10) $9 '('"mod_key" $10) '('"value" $10)))
(let $16 '('('"_logical_id" '2358) '('"_id" '"c69c8a96-73fb599e-f23fe746-e89e137f") '('"_wide_channels" $15)))
(let $17 (DqPhyStage '($14) (lambda '($28) (block '(
  (let $29 '('Many 'Hashed 'Compact))
  (let $30 (SqueezeToDict (NarrowFlatMap (WideFilter (ToFlow $28) (lambda '($35 $36) (Exists $35))) (lambda '($37 $38) (IfPresent $37 (lambda '($39) (Just '($39 (AsStruct '('"mod" $37) '('"struct_field" $38))))) (Nothing (OptionalType (TupleType $8 $11)))))) (lambda '($40) (Nth $40 '0)) (lambda '($41) (Nth $41 '1)) $29))
  (let $31 (Bool 'true))
  (let $32 '($31 $31 $31))
  (let $33 (Sort (NarrowMap (FlatMap $30 (lambda '($42) (block '(
    (let $43 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"value") (Void) (Void))) '()))))
    (let $44 (lambda '($48 $49) $48 $49 (/ (SafeCast $48 $7) (Int32 '"100"))))
    (let $45 (lambda '($53 $54 $55) $55 $53 $54))
    (let $46 '('1 '0 '2 '1))
    (let $47 '('"mod" '2 '"struct_field" '3))
    (return (MapJoinCore (WideMap (WideFilter (WideMap (DqReadWideWrap $43 '()) $44) (lambda '($50 $51 $52) (Exists $52))) $45) $42 'Inner '('0) '('"mod") $46 $47 '('"Input._equijoin_column_0") '('"d.mod")))
  )))) (lambda '($56 $57 $58 $59) (AsStruct '('"key" $56) '('"mod" $58) '('"mod_key" (Member $59 '"kk")) '('"value" $57)))) $32 (lambda '($60) '((Member $60 '"key") (Member $60 '"mod_key") (Member $60 '"value")))))
  (let $34 (lambda '($61) (Member $61 '"key") (Member $61 '"mod") (Member $61 '"mod_key") (Member $61 '"value")))
  (return (FromFlow (ExpandMap $33 $34)))
))) $16))
(let $18 '('('0 '"Asc") '('2 '"Asc") '('3 '"Asc")))
(let $19 (DqCnMerge (TDqOutput $17 '0) $18))
(let $20 (DqPhyStage '($19) (lambda '($62) (FromFlow (NarrowMap (ToFlow $62) (lambda '($63 $64 $65 $66) (AsStruct '('"key" $63) '('"mod" $64) '('"mod_key" $65) '('"value" $66)))))) '('('"_logical_id" '2370) '('"_id" '"421d7125-1390cfeb-1b257e2d-6e1a5dc6"))))
(let $21 '($13 $17 $20))
(let $22 '('"mod" '"mod_key" '"key" '"value"))
(let $23 (DqCnResult (TDqOutput $20 '0) $22))
(return (KqpPhysicalQuery '((KqpPhysicalTx $21 '($23) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $15) '0 '0)) '('('"type" '"query"))))
)
