(
(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) '('HasRLS '0) '('Attrs '('('"native_strict_schema" '"false")))))
(let $5 '('RecordsCount '"4"))
(let $6 '('DataSize '"166"))
(let $7 '('ChunkCount '1))
(let $8 '('ModifyTime '0))
(let $9 '('Revision '0))
(let $10 '('"key" '"subkey"))
(let $11 (DataType 'String))
(let $12 '('('"_logical_id" '4619) '('"_id" '"1046be54-ebbbb517-22394938-7900b7ba") '('"_wide_channels" (StructType '('"key" $11) '('"subkey" $11)))))
(let $13 (DqPhyStage '() (lambda '() (block '(
  (let $25 (YtStat '('Id '"Input2") $5 $6 $7 $8 $9))
  (let $26 (YtTable '"Input2" $3 $4 $25 '() (Void) (Void) '"/Root/plato"))
  (let $27 (YtReadTable! world $1 '((YtSection '((YtPath $26 $10 (Void) (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $27 '())))
))) $12))
(let $14 (DqCnBroadcast (TDqOutput $13 '0)))
(let $15 (OptionalType $11))
(let $16 (OptionalType (DataType 'Int32)))
(let $17 (StructType '('"a.subkey" $11) '('"akey1" $11) '('"b.subkey" $15) '('"b.value" $16) '('"bkey1" $15)))
(let $18 '('('"_logical_id" '4805) '('"_id" '"9266789d-4049fbfa-a166282d-aa892bab") '('"_wide_channels" $17)))
(let $19 (DqPhyStage '($14) (lambda '($28) (block '(
  (let $29 '('Many 'Hashed 'Compact))
  (let $30 (NarrowSqueezeToDict (ToFlow $28) (lambda '($33 $34) '($33 $33 $33)) (lambda '($35 $36) (AsStruct '('"key" $35) '('"subkey" $36))) $29))
  (let $31 (Bool 'true))
  (let $32 (lambda '($47 $48 $49 $50) (block '(
    (let $51 (IfPresent (FilterNullMembers (AssumeAllMembersNullableAtOnce (Just (AsStruct '('"key" $49) '('"subkey" $50)))) $10) (lambda '($53) (Just (Concat (Member $53 '"key") (Member $53 '"subkey")))) (Nothing $15)))
    (let $52 (If (Exists $49) (Just (Int32 '1)) (Nothing $16)))
    (return (Concat $48 $47) $47 $51 $52 $49)
  ))))
  (return (FromFlow (WideMap (WideSort (FlatMap $30 (lambda '($37) (block '(
    (let $38 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
    (let $39 (YtTable '"Input1" $3 $4 $38 '() (Void) (Void) '"/Root/plato"))
    (let $40 (YtReadTable! world $1 '((YtSection '((YtPath $39 $10 (Void) (Void) (Void))) '()))))
    (let $41 '('0 '0 '0))
    (let $42 '('"key" '"key" '"key"))
    (let $43 '('0 '0 '1 '1))
    (let $44 '('"key" '2 '"subkey" '3))
    (let $45 '('"a.key" '"a.key" '"a.key"))
    (let $46 '('"b.key" '"b.key" '"b.key"))
    (return (MapJoinCore (DqReadWideWrap $40 '()) $37 'Left $41 $42 $43 $44 $45 $46))
  )))) '('('0 $31) '('2 $31))) $32)))
))) $18))
(let $20 (DqCnMerge (TDqOutput $19 '0) '('('1 '"Asc") '('"4" '"Asc"))))
(let $21 (DqPhyStage '($20) (lambda '($54) (FromFlow (NarrowMap (ToFlow $54) (lambda '($55 $56 $57 $58 $59) (AsStruct '('"a.subkey" $55) '('"akey1" $56) '('"b.subkey" $57) '('"b.value" $58) '('"bkey1" $59)))))) '('('"_logical_id" '4817) '('"_id" '"c69e57be-73bb553a-bddf8ec1-9e9b1cea"))))
(let $22 '($13 $19 $21))
(let $23 '('"akey1" '"bkey1" '"a.subkey" '"b.subkey" '"b.value"))
(let $24 (DqCnResult (TDqOutput $21 '0) $23))
(return (KqpPhysicalQuery '((KqpPhysicalTx $22 '($24) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $17) '0 '0)) '('('"type" '"query"))))
)
