(
(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 '('SortedByTypes '($8 $8)))
(let $10 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0)))
(let $11 '('ChunkCount '1))
(let $12 '('ModifyTime '0))
(let $13 '('Revision '0))
(let $14 '('"k2"))
(let $15 '('('"_logical_id" '960) '('"_id" '"855bb1f6-ce2edd25-e5ff19d2-c3c1acac") '('"_wide_channels" (StructType '('"k2" $8)))))
(let $16 (DqPhyStage '() (lambda '() (block '(
  (let $25 '@@["StructType";[["k2";["OptionalType";["DataType";"String"]]];["v2";["OptionalType";["DataType";"String"]]];["u2";["DataType";"String"]]]]@@)
  (let $26 '('"k2" '"v2"))
  (let $27 (YqlRowSpec $2 $3 $4 '('Type $25) $6 '('SortMembers $26) '('SortedBy $26) $9))
  (let $28 (YtStat '('Id '"Input2") '('RecordsCount '"3") '('DataSize '"108") $11 $12 $13))
  (let $29 (YtTable '"Input2" $27 $10 $28 '() (Void) (Void) '"/Root/plato"))
  (let $30 (YtReadTable! world $1 '((YtSection '((YtPath $29 $14 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $30 '())))
))) $15))
(let $17 (DqCnBroadcast (TDqOutput $16 '0)))
(let $18 (StructType '('"a.k1" $8) '('"a.u1" $7) '('"a.v1" $8)))
(let $19 '('('"_logical_id" '1062) '('"_id" '"69b60fc1-1c46632f-ef2eb20c-d49401ff") '('"_wide_channels" $18)))
(let $20 (DqPhyStage '($17) (lambda '($31) (block '(
  (let $32 '('One 'Hashed 'Compact))
  (let $33 (SqueezeToDict (NarrowFlatMap (WideFilter (ToFlow $31) (lambda '($34) (Exists $34))) (lambda '($35) $35)) (lambda '($36) $36) (lambda '($37) (Void)) $32))
  (return (FromFlow (WideSort (FlatMap $33 (lambda '($38) (block '(
    (let $39 '@@["StructType";[["k1";["OptionalType";["DataType";"String"]]];["v1";["OptionalType";["DataType";"String"]]];["u1";["DataType";"String"]]]]@@)
    (let $40 '('"k1" '"v1"))
    (let $41 (YqlRowSpec $2 $3 $4 '('Type $39) $6 '('SortMembers $40) '('SortedBy $40) $9))
    (let $42 (YtStat '('Id '"Input1") '('RecordsCount '"5") '('DataSize '"180") $11 $12 $13))
    (let $43 (YtTable '"Input1" $41 $10 $42 '() (Void) (Void) '"/Root/plato"))
    (let $44 '('"k1" '"u1" '"v1"))
    (let $45 (YtReadTable! world $1 '((YtSection '((YtPath $43 $44 (Void) (Void))) '()))))
    (let $46 '('0 '0 '1 '1 '2 '2))
    (return (MapJoinCore (WideFilter (DqReadWideWrap $45 '()) (lambda '($47 $48 $49) (Exists $47))) $38 'LeftSemi '('0) $14 $46 '() '('"a.k1") '('"b.k2")))
  )))) '('('0 $5)))))
))) $19))
(let $21 (DqCnMerge (TDqOutput $20 '0) '('('0 '"Asc"))))
(let $22 (DqPhyStage '($21) (lambda '($50) (FromFlow (NarrowMap (ToFlow $50) (lambda '($51 $52 $53) (AsStruct '('"a.k1" $51) '('"a.u1" $52) '('"a.v1" $53)))))) '('('"_logical_id" '1074) '('"_id" '"b7daa3e2-d46bd8b2-49efa39f-63ea08fe"))))
(let $23 '($16 $20 $22))
(let $24 (DqCnResult (TDqOutput $22 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $23 '($24) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $18) '0 '0)) '('('"type" '"query"))))
)
