(
(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 '"14") '('DataSize '"614") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $6 (YtTable '"Input" $3 $4 $5 '() (Void) (Void) '"/Root/plato"))
(let $7 (DataType 'Uint32))
(let $8 (OptionalType $7))
(let $9 '('('"_logical_id" '2635) '('"_id" '"33d6e11d-4c8a61da-2b707f9-2eb97818") '('"_wide_channels" (StructType '('"uk" $8)))))
(let $10 (DqPhyStage '() (lambda '() (block '(
  (let $27 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key") (Void) (Void))) '()))))
  (return (FromFlow (WideMap (DqReadWideWrap $27 '()) (lambda '($28) (SafeCast $28 $8)))))
))) $9))
(let $11 (DqCnBroadcast (TDqOutput $10 '0)))
(let $12 (lambda '($34) $34))
(let $13 (lambda '($57 $58) $58 $57))
(let $14 (ListType $7))
(let $15 '('bus $8))
(let $16 '('('"_logical_id" '2841) '('"_id" '"89ba6d81-9d566bfc-f4ad3a46-90c40bfc") '('"_wide_channels" (StructType '('_yql_agg_0 $14) $15))))
(let $17 (DqPhyStage '($11) (lambda '($29) (block '(
  (let $30 '('One 'Hashed 'Compact))
  (let $31 (SqueezeToDict (NarrowFlatMap (WideFilter (ToFlow $29) (lambda '($32) (Exists $32))) (lambda '($33) $33)) $12 (lambda '($35) (Void)) $30))
  (return (WideFromBlocks (DqPhyHashCombine (WideToBlocks (FromFlow (FlatMap $31 (lambda '($36) (block '(
    (let $37 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"subkey") (Void) (Void))) '()))))
    (let $38 (lambda '($41 $42) $42 (SafeCast $41 $8)))
    (let $39 (lambda '($45 $46) $46 (SafeCast $45 $8)))
    (let $40 '('0 '0 '1 '1))
    (return (MapJoinCore (WideMap (WideFilter (WideMap (DqReadWideWrap $37 '()) $38) (lambda '($43 $44) (Exists $44))) $39) $36 '"LeftSemi" '('0) '('"uk") $40 '() '('"a.uk") '('"b.uk")))
  )))))) '-1073741824 (lambda '($47 $48) $48) (lambda '($49 $50 $51) (ToList $50)) (lambda '($52 $53 $54 $55) (IfPresent $53 (lambda '($56) (Insert $55 $56)) $55)) $13)))
))) $16))
(let $18 (DqCnHashShuffle (TDqOutput $17 '0) '('1) '0 '"HashV2"))
(let $19 (StructType $15 '('"column0" $14) '('"column1" $14)))
(let $20 '('('"_logical_id" '3457) '('"_id" '"aad661e6-b7e7b9aa-f062ce89-a811c89") '('"_wide_channels" $19)))
(let $21 (DqPhyStage '($18) (lambda '($59) (block '(
  (let $60 (WideCombiner (ToFlow $59) '"" (lambda '($63 $64) $64) (lambda '($65 $66 $67) $66) (lambda '($68 $69 $70 $71) (Extend $69 $71)) $13))
  (let $61 (Bool 'true))
  (let $62 (lambda '($72 $73) (block '(
    (let $74 (Sort $72 $61 $12))
    (return $73 $74 $74)
  ))))
  (return (FromFlow (WideMap (WideSort $60 '('('1 $61))) $62)))
))) $20))
(let $22 (DqCnMerge (TDqOutput $21 '0) '('('0 '"Asc"))))
(let $23 (DqPhyStage '($22) (lambda '($75) (FromFlow (NarrowMap (ToFlow $75) (lambda '($76 $77 $78) (AsStruct '('bus $76) '('"column0" $77) '('"column1" $78)))))) '('('"_logical_id" '3469) '('"_id" '"62991acc-e323c54e-72d1ebb3-ba830143"))))
(let $24 '($10 $17 $21 $23))
(let $25 '('"column0" '"column1" 'bus))
(let $26 (DqCnResult (TDqOutput $23 '0) $25))
(return (KqpPhysicalQuery '((KqpPhysicalTx $24 '($26) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $19) '0 '0)) '('('"type" '"query"))))
)
