(
(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 '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $6 (YtTable '"Input" $3 $4 $5 '() (Void) (Void) '"/Root/plato"))
(let $7 (OptionalType (DataType 'Int32)))
(let $8 (StructType '('"key" $7) '('"value" (DataType 'String))))
(let $9 '('"_wide_channels" $8))
(let $10 '('('"_logical_id" '2553) '('"_id" '"3a1c223f-d0ec8a85-9f17d310-49995999") $9))
(let $11 (DqPhyStage '() (lambda '() (block '(
  (let $36 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key") (Void) (Void))) '()))))
  (let $37 (lambda '($38) (SafeCast $38 $7) (String '"")))
  (return (FromFlow (WideMap (DqReadWideWrap $36 '()) $37)))
))) $10))
(let $12 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"value") (Void) (Void))) '()))))
(let $13 (DqReadWideWrap $12 '()))
(let $14 '('"_logical_id" '2984))
(let $15 '($14 '('"_id" '"9c9f2ff7-e659e507-ef275265-a622b89c") $9))
(let $16 (DqPhyStage '() (lambda '() (block '(
  (let $39 (lambda '($40) (Just (Int32 '0)) $40))
  (return (FromFlow (WideMap $13 $39)))
))) $15))
(let $17 '($14 '('"_id" '"1558e712-78826d80-f9e58cab-818cef68") $9))
(let $18 (DqPhyStage '() (lambda '() (block '(
  (let $41 (lambda '($42) (Just (Int32 '1)) $42))
  (return (FromFlow (WideMap $13 $41)))
))) $17))
(let $19 '($14 '('"_id" '"347516e8-ef395d13-81887321-21006ec5") $9))
(let $20 (DqPhyStage '() (lambda '() (block '(
  (let $43 (lambda '($44) (Just (Int32 '"2")) $44))
  (return (FromFlow (WideMap $13 $43)))
))) $19))
(let $21 '($14 '('"_id" '"5a4ecd33-776bdc4a-de9d7835-6cc1dcfc") $9))
(let $22 (DqPhyStage '() (lambda '() (block '(
  (let $45 (lambda '($46) (Just (Int32 '"3")) $46))
  (return (FromFlow (WideMap $13 $45)))
))) $21))
(let $23 (DqCnParallelUnionAll (TDqOutput $11 '0)))
(let $24 (DqCnParallelUnionAll (TDqOutput $16 '0)))
(let $25 (DqCnParallelUnionAll (TDqOutput $18 '0)))
(let $26 (DqCnParallelUnionAll (TDqOutput $20 '0)))
(let $27 (DqCnParallelUnionAll (TDqOutput $22 '0)))
(let $28 '($23 $24 $25 $26 $27))
(let $29 (lambda '($56 $57) (AsStruct '('"key" $56) '('"value" $57))))
(let $30 '('('"_logical_id" '3100) '('"_id" '"8dfb58ae-43b2b1de-c95715b2-4d5a867") $9))
(let $31 (DqPhyStage $28 (lambda '($47 $48 $49 $50 $51) (block '(
  (let $52 (Extend (NarrowMap (ToFlow $47) $29) (NarrowMap (ToFlow $48) $29) (NarrowMap (ToFlow $49) $29) (NarrowMap (ToFlow $50) $29) (NarrowMap (ToFlow $51) $29)))
  (let $53 (Bool 'true))
  (let $54 (Sort $52 '($53 $53) (lambda '($58) '((Member $58 '"key") (Member $58 '"value")))))
  (let $55 (lambda '($59) (Member $59 '"key") (Member $59 '"value")))
  (return (FromFlow (ExpandMap $54 $55)))
))) $30))
(let $32 (DqCnMerge (TDqOutput $31 '0) '('('0 '"Asc") '('1 '"Asc"))))
(let $33 (DqPhyStage '($32) (lambda '($60) (FromFlow (NarrowMap (ToFlow $60) $29))) '('('"_logical_id" '3112) '('"_id" '"e597c730-bb8892f6-96c2dd9b-59593f0c"))))
(let $34 '($11 $16 $18 $20 $22 $31 $33))
(let $35 (DqCnResult (TDqOutput $33 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $34 '($35) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $8) '0 '0)) '('('"type" '"query"))))
)
