(
(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 (YtStat '('Id '"Input") $5 $6 $7 $8 $9))
(let $11 (YtTable '"Input" $3 $4 $10 '() (Void) (Void) '"/Root/plato"))
(let $12 (String '""))
(let $13 (DataType 'String))
(let $14 (StructType '('"key" $13) '('"value" $13)))
(let $15 '('"_wide_channels" $14))
(let $16 '('('"_logical_id" '1571) '('"_id" '"11a9682f-9f6cde4d-8c46a649-a37c9056") $15))
(let $17 (DqPhyStage '() (lambda '() (block '(
  (let $33 (YtReadTable! world $1 '((YtSection '((YtPath $11 '('"key") (Void) (Void))) '()))))
  (let $34 (lambda '($35) $35 $12))
  (return (FromFlow (WideMap (DqReadWideWrap $33 '()) $34)))
))) $16))
(let $18 '('('"_logical_id" '1494) '('"_id" '"52cfaa30-c489dffe-36080710-6925590f") $15))
(let $19 (DqPhyStage '() (lambda '() (block '(
  (let $36 (YtStat '('Id '"Input2") $5 $6 $7 $8 $9))
  (let $37 (YtTable '"Input2" $3 $4 $36 '() (Void) (Void) '"/Root/plato"))
  (let $38 (YtReadTable! world $1 '((YtSection '((YtPath $37 '('"key" '"value") (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $38 '())))
))) $18))
(let $20 '('('"_logical_id" '1596) '('"_id" '"7ec57b99-a54bf3ab-a9e479bc-5410a968") $15))
(let $21 (DqPhyStage '() (lambda '() (block '(
  (let $39 (YtReadTable! world $1 '((YtSection '((YtPath $11 '('"value") (Void) (Void))) '()))))
  (let $40 (lambda '($41) $12 $41))
  (return (FromFlow (WideMap (DqReadWideWrap $39 '()) $40)))
))) $20))
(let $22 (DqCnParallelUnionAll (TDqOutput $17 '0)))
(let $23 (DqCnParallelUnionAll (TDqOutput $19 '0)))
(let $24 (DqCnParallelUnionAll (TDqOutput $21 '0)))
(let $25 '($22 $23 $24))
(let $26 (lambda '($49 $50) (AsStruct '('"key" $49) '('"value" $50))))
(let $27 '('('"_logical_id" '1687) '('"_id" '"7ec99330-2be0323-be0e3e03-9feb418b") $15))
(let $28 (DqPhyStage $25 (lambda '($42 $43 $44) (block '(
  (let $45 (Extend (NarrowMap (ToFlow $42) $26) (NarrowMap (ToFlow $43) $26) (NarrowMap (ToFlow $44) $26)))
  (let $46 (Bool 'true))
  (let $47 (Sort $45 '($46 $46) (lambda '($51) '((Member $51 '"key") (Member $51 '"value")))))
  (let $48 (lambda '($52) (Member $52 '"key") (Member $52 '"value")))
  (return (FromFlow (ExpandMap $47 $48)))
))) $27))
(let $29 (DqCnMerge (TDqOutput $28 '0) '('('0 '"Asc") '('1 '"Asc"))))
(let $30 (DqPhyStage '($29) (lambda '($53) (FromFlow (NarrowMap (ToFlow $53) $26))) '('('"_logical_id" '1699) '('"_id" '"4a4e95b-b75e0777-4341b1ae-624bc429"))))
(let $31 '($17 $19 $21 $28 $30))
(let $32 (DqCnResult (TDqOutput $30 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $31 '($32) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $14) '0 '0)) '('('"type" '"query"))))
)
