(
(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 '"Input4") '('RecordsCount '"9") '('DataSize '"369") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $6 (YtTable '"Input4" $3 $4 $5 '() (Void) (Void) '"/Root/plato"))
(let $7 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key") (Void) (Void))) '()))))
(let $8 (DqReadWideWrap $7 '()))
(let $9 (String '0))
(let $10 (DataType 'String))
(let $11 '('"_wide_channels" (StructType '('"column0" $10))))
(let $12 '('('"_logical_id" '3108) '('"_id" '"b8752602-123a8f58-5ef67bdd-bc233ac") $11))
(let $13 (DqPhyStage '() (lambda '() (FromFlow (WideMap $8 (lambda '($48) (Concat $48 $9))))) $12))
(let $14 (DqCnBroadcast (TDqOutput $13 '0)))
(let $15 '('One 'Hashed 'Compact))
(let $16 '('"key" '"subkey" '"value"))
(let $17 (YtReadTable! world $1 '((YtSection '((YtPath $6 $16 (Void) (Void))) '()))))
(let $18 '('"column0"))
(let $19 (Bool 'true))
(let $20 (StructType '('"key" $10) '('"subkey" $10) '('"value" $10)))
(let $21 '('"_wide_channels" $20))
(let $22 '('('"_logical_id" '3254) '('"_id" '"b05ecce1-119659f8-b75a3bf9-e6d41852") $21))
(let $23 (DqPhyStage '($14) (lambda '($49) (block '(
  (let $50 (NarrowSqueezeToDict (ToFlow $49) (lambda '($51) $51) (lambda '($52) (Void)) $15))
  (return (FromFlow (WideSort (FlatMap $50 (lambda '($53) (block '(
    (let $54 '('0 '0 '1 '1 '2 '2))
    (return (MapJoinCore (DqReadWideWrap $17 '()) $53 'LeftOnly '('1) $18 $54 '() '('"_yql_injoin_input.subkey") '('"_yql_injoin_0.column0")))
  )))) '('('0 $19) '('1 $19)))))
))) $22))
(let $24 '('('0 '"Asc") '('1 '"Asc")))
(let $25 (DqCnMerge (TDqOutput $23 '0) $24))
(let $26 (lambda '($56 $57 $58) (AsStruct '('"key" $56) '('"subkey" $57) '('"value" $58))))
(let $27 (DqPhyStage '($25) (lambda '($55) (FromFlow (NarrowMap (ToFlow $55) $26))) '('('"_logical_id" '3266) '('"_id" '"16b16c95-d478ee51-7ec67d29-c6fa87c0"))))
(let $28 '($13 $23 $27))
(let $29 (DqCnResult (TDqOutput $27 '0) '()))
(let $30 '('('"type" '"generic")))
(let $31 (KqpPhysicalTx $28 '($29) '() $30))
(let $32 '('('"_logical_id" '3318) '('"_id" '"5c9957ed-3e10b728-d8f16646-fe09cbcb") $21))
(let $33 (DqPhyStage '() (lambda '() (FromFlow (DqReadWideWrap $17 '()))) $32))
(let $34 '('('"_logical_id" '3404) '('"_id" '"dbb5b144-6c87d002-97cfd34d-142d0543") $11))
(let $35 (DqPhyStage '() (lambda '() (FromFlow (WideMap $8 (lambda '($59) (Concat $59 $9))))) $34))
(let $36 (DqCnUnionAll (TDqOutput $33 '0)))
(let $37 (DqCnUnionAll (TDqOutput $35 '0)))
(let $38 '('('"_logical_id" '3556) '('"_id" '"9c13a3b3-aa18c054-6c70ca72-1a72ce31") $21))
(let $39 (DqPhyStage '($36 $37) (lambda '($60 $61) (block '(
  (let $62 (NarrowSqueezeToDict (ToFlow $61) (lambda '($63) $63) (lambda '($64) (Void)) $15))
  (return (FromFlow (WideSort (FlatMap $62 (lambda '($65) (block '(
    (let $66 '('0 '0 '1 '1 '2 '2))
    (return (MapJoinCore (ToFlow $60) $65 '"LeftSemi" '('1) $18 $66 '() '('"subkey") $18))
  )))) '('('0 $19) '('1 $19)))))
))) $38))
(let $40 (DqCnMerge (TDqOutput $39 '0) $24))
(let $41 (DqPhyStage '($40) (lambda '($67) (FromFlow (NarrowMap (ToFlow $67) $26))) '('('"_logical_id" '3568) '('"_id" '"8ee25bba-563b5507-fcee51c8-12c12a21"))))
(let $42 '($33 $35 $39 $41))
(let $43 (DqCnResult (TDqOutput $41 '0) '()))
(let $44 (KqpPhysicalTx $42 '($43) '() $30))
(let $45 (ListType $20))
(let $46 (KqpTxResultBinding $45 '0 '0))
(let $47 (KqpTxResultBinding $45 '1 '0))
(return (KqpPhysicalQuery '($31 $44) '($46 $47) '('('"type" '"query"))))
)
