(
(let $1 (DataSource '"yt" '"/Root/plato"))
(let $2 '('NativeYtTypeFlags '0))
(let $3 '('UniqueKeys '0))
(let $4 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
(let $5 (YqlRowSpec $2 '('StrictSchema '1) $3 '('Type $4)))
(let $6 '('CanWrite '1))
(let $7 '('DoesExist '1))
(let $8 '('IsDynamic '0))
(let $9 '('Attrs '('('"native_strict_schema" '"false"))))
(let $10 (YtMeta $6 $7 '('YqlCompatibleScheme '1) '('InferredScheme '0) $8 $9))
(let $11 '('RecordsCount '"4"))
(let $12 '('DataSize '"166"))
(let $13 '('ChunkCount '1))
(let $14 '('ModifyTime '0))
(let $15 '('Revision '0))
(let $16 (YtStat '('Id '"Input") $11 $12 $13 $14 $15))
(let $17 (YtTable '"Input" $5 $10 $16 '() (Void) (Void) '"/Root/plato"))
(let $18 (Just (String '"")))
(let $19 (OptionalType (DataType 'String)))
(let $20 (StructType '('"key" $19) '('"value" $19)))
(let $21 '('"_wide_channels" $20))
(let $22 '('('"_logical_id" '1778) '('"_id" '"ef284c6f-445eb04c-13c4d1d8-e9d74bef") $21))
(let $23 (DqPhyStage '() (lambda '() (block '(
  (let $39 (YtReadTable! world $1 '((YtSection '((YtPath $17 '('"key") (Void) (Void))) '()))))
  (let $40 (lambda '($41) (Just $41) $18))
  (return (FromFlow (WideMap (DqReadWideWrap $39 '()) $40)))
))) $22))
(let $24 '('('"_logical_id" '1804) '('"_id" '"28b526d1-4c0db688-7b4f3aae-5e552195") $21))
(let $25 (DqPhyStage '() (lambda '() (block '(
  (let $42 (YtReadTable! world $1 '((YtSection '((YtPath $17 '('"value") (Void) (Void))) '()))))
  (let $43 (lambda '($44) $18 (Just $44)))
  (return (FromFlow (WideMap (DqReadWideWrap $42 '()) $43)))
))) $24))
(let $26 '('('"_logical_id" '1721) '('"_id" '"ba00dd03-17f614fa-e4b5a05b-5007e903") $21))
(let $27 (DqPhyStage '() (lambda '() (block '(
  (let $45 '@@["StructType";[["key";["OptionalType";["DataType";"String"]]];["subkey";["OptionalType";["DataType";"String"]]];["value";["OptionalType";["DataType";"String"]]]]]@@)
  (let $46 (YqlRowSpec $2 '('StrictSchema '0) $3 '('Type $45)))
  (let $47 (YtMeta $6 $7 '('YqlCompatibleScheme '0) '('InferredScheme '1) $8 $9))
  (let $48 (YtStat '('Id '"Input2") $11 $12 $13 $14 $15))
  (let $49 (YtTable '"Input2" $46 $47 $48 '() (Void) (Void) '"/Root/plato"))
  (let $50 (YtReadTable! world $1 '((YtSection '((YtPath $49 '('"key" '"value") (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $50 '())))
))) $26))
(let $28 (DqCnParallelUnionAll (TDqOutput $23 '0)))
(let $29 (DqCnParallelUnionAll (TDqOutput $25 '0)))
(let $30 (DqCnParallelUnionAll (TDqOutput $27 '0)))
(let $31 '($28 $29 $30))
(let $32 (lambda '($58 $59) (AsStruct '('"key" $58) '('"value" $59))))
(let $33 '('('"_logical_id" '1897) '('"_id" '"2f5c6166-b4029ab5-b06f3387-cf32cab") $21))
(let $34 (DqPhyStage $31 (lambda '($51 $52 $53) (block '(
  (let $54 (Extend (NarrowMap (ToFlow $51) $32) (NarrowMap (ToFlow $52) $32) (NarrowMap (ToFlow $53) $32)))
  (let $55 (Bool 'true))
  (let $56 (Sort $54 '($55 $55) (lambda '($60) '((Member $60 '"key") (Member $60 '"value")))))
  (let $57 (lambda '($61) (Member $61 '"key") (Member $61 '"value")))
  (return (FromFlow (ExpandMap $56 $57)))
))) $33))
(let $35 (DqCnMerge (TDqOutput $34 '0) '('('0 '"Asc") '('1 '"Asc"))))
(let $36 (DqPhyStage '($35) (lambda '($62) (FromFlow (NarrowMap (ToFlow $62) $32))) '('('"_logical_id" '1909) '('"_id" '"332ea499-b0a056c3-a53a58e-2139b03a"))))
(let $37 '($23 $25 $27 $34 $36))
(let $38 (DqCnResult (TDqOutput $36 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $37 '($38) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $20) '0 '0)) '('('"type" '"query"))))
)
