(
(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 (DataType 'String))
(let $10 (OptionalType (DataType 'Int32)))
(let $11 '('('"_logical_id" '1193) '('"_id" '"4abe4437-313afa72-67888755-fb361691") '('"_wide_channels" (StructType '('"Key" $9) '('"Value" $10)))))
(let $12 (DqPhyStage '() (lambda '() (block '(
  (let $23 '@@["StructType";[["Key";["DataType";"String"]];["Value";["OptionalType";["DataType";"Int32"]]]]]@@)
  (let $24 (YqlRowSpec $2 $3 $4 '('Type $23)))
  (let $25 (YtStat '('Id '"Input2") '('RecordsCount '3) '('DataSize '"87") $6 $7 $8))
  (let $26 (YtTable '"Input2" $24 $5 $25 '() (Void) (Void) '"/Root/plato"))
  (let $27 (YtReadTable! world $1 '((YtSection '((YtPath $26 '('"Key" '"Value") (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $27 '())))
))) $11))
(let $13 (DqCnBroadcast (TDqOutput $12 '0)))
(let $14 (OptionalType $9))
(let $15 (StructType '('"t1.Fk1" $14) '('"t1.Key1" $10) '('"t1.Key2" $14) '('"t1.Value" $14) '('"t2.Key" $14) '('"t2.Value" $10)))
(let $16 '('('"_logical_id" '1374) '('"_id" '"40ad520a-f9ec0b7c-560a89-9bfb38dc") '('"_wide_channels" $15)))
(let $17 (DqPhyStage '($13) (lambda '($28) (block '(
  (let $29 '('Many 'Hashed 'Compact))
  (let $30 (NarrowSqueezeToDict (ToFlow $28) (lambda '($32 $33) $32) (lambda '($34 $35) (AsStruct '('"Key" $34) '('"Value" $35))) $29))
  (let $31 (Bool 'true))
  (return (FromFlow (WideSort (FlatMap $30 (lambda '($36) (block '(
    (let $37 '@@["StructType";[["Key1";["OptionalType";["DataType";"Int32"]]];["Key2";["OptionalType";["DataType";"String"]]];["Fk1";["OptionalType";["DataType";"String"]]];["Value";["OptionalType";["DataType";"String"]]]]]@@)
    (let $38 (YqlRowSpec $2 $3 $4 '('Type $37)))
    (let $39 (YtStat '('Id '"Input1") '('RecordsCount '"8") '('DataSize '"471") $6 $7 $8))
    (let $40 (YtTable '"Input1" $38 $5 $39 '() (Void) (Void) '"/Root/plato"))
    (let $41 '('"Fk1" '"Key1" '"Key2" '"Value"))
    (let $42 (YtReadTable! world $1 '((YtSection '((YtPath $40 $41 (Void) (Void))) '()))))
    (let $43 '('0 '0 '1 '1 '2 '2 '3 '3))
    (let $44 '('"Key" '4 '"Value" '5))
    (return (MapJoinCore (WideFilter (DqReadWideWrap $42 '()) (lambda '($45 $46 $47 $48) (Coalesce (> $46 (Int32 '"104")) (Bool 'false)))) $36 '"Left" '('0) '('"Key") $43 $44 '('"t2.Key") '('"t1.Fk1")))
  )))) '('('1 $31) '('2 $31)))))
))) $16))
(let $18 (DqCnMerge (TDqOutput $17 '0) '('('1 '"Asc") '('2 '"Asc"))))
(let $19 (DqPhyStage '($18) (lambda '($49) (FromFlow (NarrowMap (ToFlow $49) (lambda '($50 $51 $52 $53 $54 $55) (AsStruct '('"t1.Fk1" $50) '('"t1.Key1" $51) '('"t1.Key2" $52) '('"t1.Value" $53) '('"t2.Key" $54) '('"t2.Value" $55)))))) '('('"_logical_id" '1386) '('"_id" '"83d92498-93142d3a-75fcd52f-3e3fba43"))))
(let $20 '($12 $17 $19))
(let $21 '('"t1.Key1" '"t1.Key2" '"t1.Fk1" '"t1.Value" '"t2.Key" '"t2.Value"))
(let $22 (DqCnResult (TDqOutput $19 '0) $21))
(return (KqpPhysicalQuery '((KqpPhysicalTx $20 '($22) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $15) '0 '0)) '('('"type" '"query"))))
)
