(
(let $1 (DataSource '"yt" '"/Root/plato"))
(let $2 '('NativeYtTypeFlags '0))
(let $3 '('StrictSchema '1))
(let $4 '('UniqueKeys '0))
(let $5 (Bool 'true))
(let $6 '('SortDirections '($5 $5)))
(let $7 (DataType 'String))
(let $8 (OptionalType $7))
(let $9 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0)))
(let $10 '('ChunkCount '1))
(let $11 '('ModifyTime '0))
(let $12 '('Revision '0))
(let $13 '('"k2"))
(let $14 '('('"_logical_id" '960) '('"_id" '"6f3e8d72-19d95ff6-77f2bfc1-df8a98e0") '('"_wide_channels" (StructType '('"k2" $8)))))
(let $15 (DqPhyStage '() (lambda '() (block '(
  (let $24 '@@["StructType";[["k2";["OptionalType";["DataType";"String"]]];["v2";["OptionalType";["DataType";"String"]]];["u2";["DataType";"String"]]]]@@)
  (let $25 '('"k2" '"v2"))
  (let $26 (YqlRowSpec $2 $3 $4 '('Type $24) $6 '('SortMembers $25) '('SortedBy $25) '('SortedByTypes '($8 $8))))
  (let $27 (YtStat '('Id '"Input2") '('RecordsCount '"3") '('DataSize '"108") $10 $11 $12))
  (let $28 (YtTable '"Input2" $26 $9 $27 '() (Void) (Void) '"/Root/plato"))
  (let $29 (YtReadTable! world $1 '((YtSection '((YtPath $28 $13 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $29 '())))
))) $14))
(let $16 (DqCnBroadcast (TDqOutput $15 '0)))
(let $17 (StructType '('"a.k1" $7) '('"a.u1" $7) '('"a.v1" $7)))
(let $18 '('('"_logical_id" '1062) '('"_id" '"f92c72af-3dea85ee-505fb77e-21a0f869") '('"_wide_channels" $17)))
(let $19 (DqPhyStage '($16) (lambda '($30) (block '(
  (let $31 '('One 'Hashed 'Compact))
  (let $32 (SqueezeToDict (NarrowFlatMap (WideFilter (ToFlow $30) (lambda '($33) (Exists $33))) (lambda '($34) $34)) (lambda '($35) $35) (lambda '($36) (Void)) $31))
  (return (FromFlow (WideSort (FlatMap $32 (lambda '($37) (block '(
    (let $38 '@@["StructType";[["k1";["DataType";"String"]];["v1";["DataType";"String"]];["u1";["DataType";"String"]]]]@@)
    (let $39 '('"k1" '"v1"))
    (let $40 (YqlRowSpec $2 $3 $4 '('Type $38) $6 '('SortMembers $39) '('SortedBy $39) '('SortedByTypes '($7 $7))))
    (let $41 (YtStat '('Id '"Input1") '('RecordsCount '"4") '('DataSize '"144") $10 $11 $12))
    (let $42 (YtTable '"Input1" $40 $9 $41 '() (Void) (Void) '"/Root/plato"))
    (let $43 '('"k1" '"u1" '"v1"))
    (let $44 (YtReadTable! world $1 '((YtSection '((YtPath $42 $43 (Void) (Void))) '()))))
    (let $45 '('0 '0 '1 '1 '2 '2))
    (return (MapJoinCore (DqReadWideWrap $44 '()) $37 'LeftSemi '('0) $13 $45 '() '('"a.k1") '('"b.k2")))
  )))) '('('0 $5)))))
))) $18))
(let $20 (DqCnMerge (TDqOutput $19 '0) '('('0 '"Asc"))))
(let $21 (DqPhyStage '($20) (lambda '($46) (FromFlow (NarrowMap (ToFlow $46) (lambda '($47 $48 $49) (AsStruct '('"a.k1" $47) '('"a.u1" $48) '('"a.v1" $49)))))) '('('"_logical_id" '1074) '('"_id" '"1cb3c5e3-aeb1e52b-b8f5ea46-b905e2bf"))))
(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"))))
)
