(
(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 '3) '('DataSize '"132") '('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 (StructType '($7 $9) '('"kk" $8) '('"sk" $8)))
(let $11 '('('"_logical_id" '2203) '('"_id" '"ed086359-dcb1bf-90137b7c-6b5b957f") '('"_wide_channels" $10)))
(let $12 (DqPhyStage '() (lambda '() (block '(
  (let $21 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"subkey") (Void) (Void))) '()))))
  (let $22 (lambda '($28) (Member $28 $7) (Member $28 '"kk") (Member $28 '"sk")))
  (return (FromFlow (ExpandMap (NarrowFlatMap (DqReadWideWrap $21 '()) (lambda '($23 $24) (block '(
    (let $25 (/ (SafeCast $23 (OptionalType (DataType 'Uint32))) (Int32 '"100")))
    (let $26 (IfPresent $25 (lambda '($27) (Just (SafeCast $27 $8))) (Nothing $9)))
    (return (If (Coalesce (< $25 (Int32 '"5")) (Bool 'false)) (Just (AsStruct '($7 $26) '('"kk" $23) '('"sk" $24))) (Nothing (OptionalType $10))))
  )))) $22)))
))) $11))
(let $13 (DqCnBroadcast (TDqOutput $12 '0)))
(let $14 (StructType '('"Input.key" $8) '('"Input.subkey" $8) '('"Input.value" $8) '('"d.kk" $8) '('"d.sk" $8)))
(let $15 '('('"_logical_id" '2337) '('"_id" '"86887c44-a79a29d7-ded7890a-43e28276") '('"_wide_channels" $14)))
(let $16 (DqPhyStage '($13) (lambda '($29) (block '(
  (let $30 '('Many 'Hashed 'Compact))
  (let $31 (SqueezeToDict (NarrowFlatMap (WideFilter (ToFlow $29) (lambda '($32 $33 $34) (Exists $32))) (lambda '($35 $36 $37) (IfPresent $35 (lambda '($38) (block '(
    (let $39 (AsStruct '($7 $35) '('"kk" $36) '('"sk" $37)))
    (return (Just '($38 $39)))
  ))) (Nothing (OptionalType (TupleType $8 $10)))))) (lambda '($40) (Nth $40 '0)) (lambda '($41) (Nth $41 '1)) $30))
  (return (FromFlow (WideSort (FlatMap $31 (lambda '($42) (block '(
    (let $43 '('"key" '"subkey" '"value"))
    (let $44 (YtReadTable! world $1 '((YtSection '((YtPath $6 $43 (Void) (Void))) '()))))
    (let $45 '('0 '0 '1 '1 '2 '2))
    (let $46 '('"kk" '3 '"sk" '4))
    (return (MapJoinCore (DqReadWideWrap $44 '()) $42 'Inner '('1) '($7) $45 $46 '('"Input.subkey") '('"d._equijoin_column_0")))
  )))) '('('0 (Bool 'true))))))
))) $15))
(let $17 (DqCnMerge (TDqOutput $16 '0) '('('0 '"Asc"))))
(let $18 (DqPhyStage '($17) (lambda '($47) (FromFlow (NarrowMap (ToFlow $47) (lambda '($48 $49 $50 $51 $52) (AsStruct '('"Input.key" $48) '('"Input.subkey" $49) '('"Input.value" $50) '('"d.kk" $51) '('"d.sk" $52)))))) '('('"_logical_id" '2349) '('"_id" '"a7cb0f23-16548090-ce9b9a-311d5562"))))
(let $19 '($12 $16 $18))
(let $20 (DqCnResult (TDqOutput $18 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $19 '($20) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $14) '0 '0)) '('('"type" '"query"))))
)
