(
(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 (OptionalType (DataType 'Int32)))
(let $11 (StructType '('"key" $10) '('"value" (DataType 'String))))
(let $12 '('"_wide_channels" $11))
(let $13 '('('"_logical_id" '2660) '('"_id" '"5475fb94-c7b63688-28a4898a-2a45661b") $12))
(let $14 (DqPhyStage '() (lambda '() (block '(
  (let $37 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
  (let $38 (YtTable '"Input1" $3 $4 $37 '() (Void) (Void) '"/Root/plato"))
  (let $39 (YtReadTable! world $1 '((YtSection '((YtPath $38 '('"key") (Void) (Void))) '()))))
  (let $40 (lambda '($41) (SafeCast $41 $10) (String '"")))
  (return (FromFlow (WideMap (DqReadWideWrap $39 '()) $40)))
))) $13))
(let $15 '('"value"))
(let $16 '('('"_logical_id" '2685) '('"_id" '"c9f9426b-467b8df7-2f3861f9-c1300c19") $12))
(let $17 (DqPhyStage '() (lambda '() (block '(
  (let $42 (YtStat '('Id '"Input2") $5 $6 $7 $8 $9))
  (let $43 (YtTable '"Input2" $3 $4 $42 '() (Void) (Void) '"/Root/plato"))
  (let $44 (YtReadTable! world $1 '((YtSection '((YtPath $43 $15 (Void) (Void))) '()))))
  (let $45 (lambda '($46) (Just (Int32 '0)) $46))
  (return (FromFlow (WideMap (DqReadWideWrap $44 '()) $45)))
))) $16))
(let $18 '('('"_logical_id" '2710) '('"_id" '"8245b1df-bb0ebb74-a59de7a0-97a568ee") $12))
(let $19 (DqPhyStage '() (lambda '() (block '(
  (let $47 (YtStat '('Id '"Input3") $5 $6 $7 $8 $9))
  (let $48 (YtTable '"Input3" $3 $4 $47 '() (Void) (Void) '"/Root/plato"))
  (let $49 (YtReadTable! world $1 '((YtSection '((YtPath $48 $15 (Void) (Void))) '()))))
  (let $50 (lambda '($51) (Just (Int32 '1)) $51))
  (return (FromFlow (WideMap (DqReadWideWrap $49 '()) $50)))
))) $18))
(let $20 '('('"_logical_id" '2735) '('"_id" '"dfd8af62-c5ddda59-9e2079e9-fd246051") $12))
(let $21 (DqPhyStage '() (lambda '() (block '(
  (let $52 (YtStat '('Id '"Input4") $5 $6 $7 $8 $9))
  (let $53 (YtTable '"Input4" $3 $4 $52 '() (Void) (Void) '"/Root/plato"))
  (let $54 (YtReadTable! world $1 '((YtSection '((YtPath $53 $15 (Void) (Void))) '()))))
  (let $55 (lambda '($56) (Just (Int32 '"2")) $56))
  (return (FromFlow (WideMap (DqReadWideWrap $54 '()) $55)))
))) $20))
(let $22 '('('"_logical_id" '2760) '('"_id" '"d6700a67-1a7c5814-328e42c2-a05a713e") $12))
(let $23 (DqPhyStage '() (lambda '() (block '(
  (let $57 (YtStat '('Id '"Input5") $5 $6 $7 $8 $9))
  (let $58 (YtTable '"Input5" $3 $4 $57 '() (Void) (Void) '"/Root/plato"))
  (let $59 (YtReadTable! world $1 '((YtSection '((YtPath $58 $15 (Void) (Void))) '()))))
  (let $60 (lambda '($61) (Just (Int32 '"3")) $61))
  (return (FromFlow (WideMap (DqReadWideWrap $59 '()) $60)))
))) $22))
(let $24 (DqCnParallelUnionAll (TDqOutput $14 '0)))
(let $25 (DqCnParallelUnionAll (TDqOutput $17 '0)))
(let $26 (DqCnParallelUnionAll (TDqOutput $19 '0)))
(let $27 (DqCnParallelUnionAll (TDqOutput $21 '0)))
(let $28 (DqCnParallelUnionAll (TDqOutput $23 '0)))
(let $29 '($24 $25 $26 $27 $28))
(let $30 (lambda '($71 $72) (AsStruct '('"key" $71) '('"value" $72))))
(let $31 '('('"_logical_id" '2891) '('"_id" '"a4e0a22b-3877f71d-4cf3820a-62c03ab9") $12))
(let $32 (DqPhyStage $29 (lambda '($62 $63 $64 $65 $66) (block '(
  (let $67 (Extend (NarrowMap (ToFlow $62) $30) (NarrowMap (ToFlow $63) $30) (NarrowMap (ToFlow $64) $30) (NarrowMap (ToFlow $65) $30) (NarrowMap (ToFlow $66) $30)))
  (let $68 (Bool 'true))
  (let $69 (Sort $67 '($68 $68) (lambda '($73) '((Member $73 '"key") (Member $73 '"value")))))
  (let $70 (lambda '($74) (Member $74 '"key") (Member $74 '"value")))
  (return (FromFlow (ExpandMap $69 $70)))
))) $31))
(let $33 (DqCnMerge (TDqOutput $32 '0) '('('0 '"Asc") '('1 '"Asc"))))
(let $34 (DqPhyStage '($33) (lambda '($75) (FromFlow (NarrowMap (ToFlow $75) $30))) '('('"_logical_id" '2903) '('"_id" '"d39f2650-61bbae89-8ce3bbd4-a241a85e"))))
(let $35 '($14 $17 $19 $21 $23 $32 $34))
(let $36 (DqCnResult (TDqOutput $34 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $35 '($36) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $11) '0 '0)) '('('"type" '"query"))))
)
