(
(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 '('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" '2118) '('"_id" '"aa0525ca-698281f1-be08f9c3-dae52a86") '('"_wide_channels" (StructType '('"key" $11) '('"subkey" $11)))))
(let $13 (DqPhyStage '() (lambda '() (block '(
  (let $23 (YtStat '('Id '"Input2") $5 $6 $7 $8 $9))
  (let $24 (YtTable '"Input2" $3 $4 $23 '() (Void) (Void) '"/Root/plato"))
  (let $25 (YtReadTable! world $1 '((YtSection '((YtPath $24 $10 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $25 '())))
))) $12))
(let $14 (DqCnBroadcast (TDqOutput $13 '0)))
(let $15 (StructType '('"a.subkey" $11) '('"akey" $11) '('"b.subkey" $11) '('"b.value" (DataType 'Int32)) '('"bkey" $11)))
(let $16 '('('"_logical_id" '2278) '('"_id" '"699a7421-8bf7590-fd895b0a-64509274") '('"_wide_channels" $15)))
(let $17 (DqPhyStage '($14) (lambda '($26) (block '(
  (let $27 '('Many 'Hashed 'Compact))
  (let $28 (NarrowSqueezeToDict (ToFlow $26) (lambda '($30 $31) $30) (lambda '($32 $33) (AsStruct '('"key" $32) '('"subkey" $33))) $27))
  (let $29 (lambda '($40 $41 $42 $43) (Concat $41 $40) $40 (Concat $42 $43) (Int32 '1) $42))
  (return (FromFlow (WideMap (WideSort (FlatMap $28 (lambda '($34) (block '(
    (let $35 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
    (let $36 (YtTable '"Input1" $3 $4 $35 '() (Void) (Void) '"/Root/plato"))
    (let $37 (YtReadTable! world $1 '((YtSection '((YtPath $36 $10 (Void) (Void))) '()))))
    (let $38 '('0 '0 '1 '1))
    (let $39 '('"key" '2 '"subkey" '3))
    (return (MapJoinCore (DqReadWideWrap $37 '()) $34 'Inner '('0) '('"key") $38 $39 '('"a.key") '('"b.key")))
  )))) '('('0 (Bool 'true)))) $29)))
))) $16))
(let $18 (DqCnMerge (TDqOutput $17 '0) '('('1 '"Asc"))))
(let $19 (DqPhyStage '($18) (lambda '($44) (FromFlow (NarrowMap (ToFlow $44) (lambda '($45 $46 $47 $48 $49) (AsStruct '('"a.subkey" $45) '('"akey" $46) '('"b.subkey" $47) '('"b.value" $48) '('"bkey" $49)))))) '('('"_logical_id" '2290) '('"_id" '"ba7d18bf-ee9b4222-ec4fe84a-be49cdc2"))))
(let $20 '($13 $17 $19))
(let $21 '('"akey" '"bkey" '"a.subkey" '"b.subkey" '"b.value"))
(let $22 (DqCnResult (TDqOutput $19 '0) $21))
(return (KqpPhysicalQuery '((KqpPhysicalTx $20 '($22) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $15) '0 '0)) '('('"type" '"query"))))
)
