(
(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" '"value"))
(let $11 (DataType 'String))
(let $12 (StructType '('"key" $11) '('"subkey" $11) '('"value" $11)))
(let $13 '('"_wide_channels" $12))
(let $14 '('('"_logical_id" '1175) '('"_id" '"5739d0c6-1d58c821-67fe83e8-b6e4a83a") $13))
(let $15 (DqPhyStage '() (lambda '() (block '(
  (let $37 (YtStat '('Id '"B") $5 $6 $7 $8 $9))
  (let $38 (YtTable '"B" $3 $4 $37 '() (Void) (Void) '"/Root/plato"))
  (let $39 (YtReadTable! world $1 '((YtSection '((YtPath $38 $10 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $39 '())))
))) $14))
(let $16 (DqCnBroadcast (TDqOutput $15 '0)))
(let $17 (lambda '($45 $46 $47) (AsStruct '('"key" $45) '('"subkey" $46) '('"value" $47))))
(let $18 '('Many 'Hashed 'Compact))
(let $19 '('"A.key" $11))
(let $20 '('"A.subkey" $11))
(let $21 '('"A.value" $11))
(let $22 '('"B.key" $11))
(let $23 '('"B.subkey" $11))
(let $24 '('"B.value" $11))
(let $25 (StructType $19 $20 $21 $22 $23 $24))
(let $26 '('('"_logical_id" '1273) '('"_id" '"d9525a0e-a6171f9a-8a31faf2-d6ab2a63") '('"_wide_channels" $25)))
(let $27 (DqPhyStage '($16) (lambda '($40) (block '(
  (let $41 (NarrowSqueezeToDict (ToFlow $40) (lambda '($42 $43 $44) $42) $17 $18))
  (return (FromFlow (FlatMap $41 (lambda '($48) (block '(
    (let $49 (YtStat '('Id '"A") $5 $6 $7 $8 $9))
    (let $50 (YtTable '"A" $3 $4 $49 '() (Void) (Void) '"/Root/plato"))
    (let $51 (YtReadTable! world $1 '((YtSection '((YtPath $50 $10 (Void) (Void))) '()))))
    (let $52 '('0 '0 '1 '1 '2 '2))
    (let $53 '('"key" '3 '"subkey" '4 '"value" '5))
    (return (MapJoinCore (DqReadWideWrap $51 '()) $48 'Inner '('0) '('"key") $52 $53 '('"A.key") '('"B.key")))
  ))))))
))) $26))
(let $28 '('('"_logical_id" '1202) '('"_id" '"4fedab56-83e283c7-93f6cc84-2ccaf376") $13))
(let $29 (DqPhyStage '() (lambda '() (block '(
  (let $54 (YtStat '('Id '"C") $5 $6 $7 $8 $9))
  (let $55 (YtTable '"C" $3 $4 $54 '() (Void) (Void) '"/Root/plato"))
  (let $56 (YtReadTable! world $1 '((YtSection '((YtPath $55 $10 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $56 '())))
))) $28))
(let $30 (DqCnMap (TDqOutput $27 '0)))
(let $31 (DqCnBroadcast (TDqOutput $29 '0)))
(let $32 (DqPhyStage '($30 $31) (lambda '($57 $58) (block '(
  (let $59 (NarrowSqueezeToDict (ToFlow $58) (lambda '($60 $61 $62) $61) $17 $18))
  (return (FromFlow (NarrowMap (FlatMap $59 (lambda '($63) (block '(
    (let $64 '('0 '0 '1 '1 '2 '2 '3 '3 '4 '4 '5 '5))
    (let $65 '('"key" '6 '"subkey" '7 '"value" '8))
    (return (MapJoinCore (ToFlow $57) $63 'Inner '('1) '('"subkey") $64 $65 '('"A.subkey") '('"C.subkey")))
  )))) (lambda '($66 $67 $68 $69 $70 $71 $72 $73 $74) (AsStruct '('"A.key" $66) '('"A.subkey" $67) '('"A.value" $68) '('"B.key" $69) '('"B.subkey" $70) '('"B.value" $71) '('"C.key" $72) '('"C.subkey" $73) '('"C.value" $74))))))
))) '('('"_logical_id" '1305) '('"_id" '"bd6bee84-cd36c0d5-b2a7b10d-3d17f0dc"))))
(let $33 (DqCnUnionAll (TDqOutput $32 '0)))
(let $34 (DqPhyStage '($33) (lambda '($75) $75) '('('"_logical_id" '1714) '('"_id" '"c2589db3-7db5584c-cc10e89e-862f8574"))))
(let $35 '($15 $27 $29 $32 $34))
(let $36 (DqCnResult (TDqOutput $34 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $35 '($36) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType $19 $20 $21 $22 $23 $24 '('"C.key" $11) '('"C.subkey" $11) '('"C.value" $11))) '0 '0)) '('('"type" '"query"))))
)
