(
(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) '('HasRLS '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 '('"kk" $8))
(let $11 '('"sk" $8))
(let $12 '('"val" $8))
(let $13 (StructType '($7 $9) $10 $11 $12))
(let $14 '('('"_logical_id" '2112) '('"_id" '"6b35d8ff-39738665-42f5b075-8d35135d") '('"_wide_channels" $13)))
(let $15 (DqPhyStage '() (lambda '() (block '(
  (let $24 '('"key" '"subkey" '"value"))
  (let $25 (YtReadTable! world $1 '((YtSection '((YtPath $6 $24 (Void) (Void) (Void))) '()))))
  (let $26 (lambda '($33) (Member $33 $7) (Member $33 '"kk") (Member $33 '"sk") (Member $33 '"val")))
  (return (FromFlow (ExpandMap (NarrowFlatMap (DqReadWideWrap $25 '()) (lambda '($27 $28 $29) (block '(
    (let $30 (/ (SafeCast $27 (OptionalType (DataType 'Uint32))) (Int32 '"100")))
    (let $31 (IfPresent $30 (lambda '($32) (Just (SafeCast $32 $8))) (Nothing $9)))
    (return (If (Coalesce (< $30 (Int32 '"5")) (Bool 'false)) (Just (AsStruct '($7 $31) '('"kk" $27) '('"sk" $28) '('"val" $29))) (Nothing (OptionalType $13))))
  )))) $26)))
))) $14))
(let $16 (DqCnBroadcast (TDqOutput $15 '0)))
(let $17 (StructType '('"key" $8) $10 $11 $12))
(let $18 '('('"_logical_id" '2321) '('"_id" '"64b816bc-e8caf683-37ddf578-a0d322c4") '('"_wide_channels" $17)))
(let $19 (DqPhyStage '($16) (lambda '($34) (block '(
  (let $35 '('Many 'Hashed 'Compact))
  (let $36 (SqueezeToDict (NarrowFlatMap (WideFilter (ToFlow $34) (lambda '($38 $39 $40 $41) (Exists $38))) (lambda '($42 $43 $44 $45) (IfPresent $42 (lambda '($46) (block '(
    (let $47 (AsStruct '($7 $42) '('"kk" $43) '('"sk" $44) '('"val" $45)))
    (return (Just '($46 $47)))
  ))) (Nothing (OptionalType (TupleType $8 $13)))))) (lambda '($48) (Nth $48 '0)) (lambda '($49) (Nth $49 '1)) $35))
  (let $37 (Bool 'true))
  (return (FromFlow (WideSort (FlatMap $36 (lambda '($50) (block '(
    (let $51 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"subkey") (Void) (Void) (Void))) '()))))
    (let $52 '('"kk" '1 '"sk" '2 '"val" '3))
    (return (MapJoinCore (DqReadWideWrap $51 '()) $50 'Inner '('1) '($7) '('0 '0) $52 '('"Input.subkey") '('"d._equijoin_column_0")))
  )))) '('('0 $37) '('3 $37)))))
))) $18))
(let $20 (DqCnMerge (TDqOutput $19 '0) '('('0 '"Asc") '('3 '"Asc"))))
(let $21 (DqPhyStage '($20) (lambda '($53) (FromFlow (NarrowMap (ToFlow $53) (lambda '($54 $55 $56 $57) (AsStruct '('"key" $54) '('"kk" $55) '('"sk" $56) '('"val" $57)))))) '('('"_logical_id" '2333) '('"_id" '"e4dda2cd-f3386b4c-9dc46b-1d59610b"))))
(let $22 '($15 $19 $21))
(let $23 (DqCnResult (TDqOutput $21 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $22 '($23) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $17) '0 '0)) '('('"type" '"query"))))
)
