(
(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 '"_equijoin_column_0")
(let $8 (DataType 'String))
(let $9 (OptionalType $8))
(let $10 '('"value" $8))
(let $11 (StructType '($7 $9) $10))
(let $12 '('('"_logical_id" '2259) '('"_id" '"221cff3f-811fcb8f-1b826b4e-733a13f1") '('"_wide_channels" $11)))
(let $13 (DqPhyStage '() (lambda '() (block '(
  (let $22 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"value") (Void) (Void))) '()))))
  (let $23 (lambda '($29) (Member $29 $7) (Member $29 '"value")))
  (return (FromFlow (ExpandMap (NarrowFlatMap (DqReadWideWrap $22 '()) (lambda '($24 $25) (block '(
    (let $26 (/ (SafeCast $24 (OptionalType (DataType 'Uint32))) (Int32 '"100")))
    (let $27 (IfPresent $26 (lambda '($28) (Just (SafeCast $28 $8))) (Nothing $9)))
    (return (If (Coalesce (< $26 (Int32 '"5")) (Bool 'false)) (Just (AsStruct '($7 $27) '('"value" $25))) (Nothing (OptionalType $11))))
  )))) $23)))
))) $12))
(let $14 (DqCnBroadcast (TDqOutput $13 '0)))
(let $15 (StructType '('"key" $8) '('"val" $8) $10))
(let $16 '('('"_logical_id" '2461) '('"_id" '"422d866d-cd88ba48-1c9e6e0f-849fbfc") '('"_wide_channels" $15)))
(let $17 (DqPhyStage '($14) (lambda '($30) (block '(
  (let $31 '('Many 'Hashed 'Compact))
  (let $32 (SqueezeToDict (NarrowFlatMap (WideFilter (ToFlow $30) (lambda '($35 $36) (Exists $35))) (lambda '($37 $38) (IfPresent $37 (lambda '($39) (Just '($39 (AsStruct '($7 $37) '('"value" $38))))) (Nothing (OptionalType (TupleType $8 $11)))))) (lambda '($40) (Nth $40 '0)) (lambda '($41) (Nth $41 '1)) $31))
  (let $33 (Bool 'true))
  (let $34 (lambda '($46 $47 $48) $46 $48 $47))
  (return (FromFlow (WideMap (WideSort (FlatMap $32 (lambda '($42) (block '(
    (let $43 '('"key" '"subkey" '"value"))
    (let $44 (YtReadTable! world $1 '((YtSection '((YtPath $6 $43 (Void) (Void))) '()))))
    (let $45 '('0 '0 '2 '1))
    (return (MapJoinCore (DqReadWideWrap $44 '()) $42 'Inner '('1) '($7) $45 '('"value" '2) '('"Input.subkey") '('"d._equijoin_column_0")))
  )))) '('('0 $33) '('1 $33))) $34)))
))) $16))
(let $18 (DqCnMerge (TDqOutput $17 '0) '('('0 '"Asc") '('2 '"Asc"))))
(let $19 (DqPhyStage '($18) (lambda '($49) (FromFlow (NarrowMap (ToFlow $49) (lambda '($50 $51 $52) (AsStruct '('"key" $50) '('"val" $51) '('"value" $52)))))) '('('"_logical_id" '2473) '('"_id" '"37fb1c36-41433eb5-d90411db-759a0f86"))))
(let $20 '($13 $17 $19))
(let $21 (DqCnResult (TDqOutput $19 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $20 '($21) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $15) '0 '0)) '('('"type" '"query"))))
)
