(
(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 '('"key"))
(let $11 (DataType 'String))
(let $12 (StructType '('"key" $11) '('"path" $11) '('"record" (DataType 'Uint64))))
(let $13 '('"_wide_channels" $12))
(let $14 '('('"_logical_id" '1317) '('"_id" '"3a4313a7-908e827-5fc7afc-a33b681c") $13))
(let $15 (DqPhyStage '() (lambda '() (block '(
  (let $28 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
  (let $29 (YtTable '"Input1" $3 $4 $28 '() (Void) (Void) '"/Root/plato"))
  (let $30 (YtReadTable! world $1 '((YtSection '((YtPath $29 $10 (Void) (Void))) '('('"syscolumns" '('"path" '"record")))))))
  (let $31 (lambda '($32 $33 $34) $34 $32 $33))
  (return (FromFlow (WideMap (DqReadWideWrap $30 '()) $31)))
))) $14))
(let $16 '('('"_logical_id" '1344) '('"_id" '"7e8967af-24fdc696-f0965ab0-8ab38e60") $13))
(let $17 (DqPhyStage '() (lambda '() (block '(
  (let $35 (YtStat '('Id '"Input2") $5 $6 $7 $8 $9))
  (let $36 (YtTable '"Input2" $3 $4 $35 '() (Void) (Void) '"/Root/plato"))
  (let $37 (YtReadTable! world $1 '((YtSection '((YtPath $36 $10 (Void) (Void))) '('('"syscolumns" '('"record")))))))
  (let $38 (lambda '($39 $40) $40 (String '"d") $39))
  (return (FromFlow (WideMap (DqReadWideWrap $37 '()) $38)))
))) $16))
(let $18 (DqCnParallelUnionAll (TDqOutput $15 '0)))
(let $19 (DqCnParallelUnionAll (TDqOutput $17 '0)))
(let $20 (lambda '($47 $48 $49) (AsStruct '('"key" $47) '('"path" $48) '('"record" $49))))
(let $21 '('('"_logical_id" '1438) '('"_id" '"e169c3a1-4c418085-80427c88-9079343b") $13))
(let $22 (DqPhyStage '($18 $19) (lambda '($41 $42) (block '(
  (let $43 (Bool 'true))
  (let $44 '($43 $43 $43))
  (let $45 (Sort (Extend (NarrowMap (ToFlow $41) $20) (NarrowMap (ToFlow $42) $20)) $44 (lambda '($50) '((Member $50 '"key") (Member $50 '"record") (Member $50 '"path")))))
  (let $46 (lambda '($51) (Member $51 '"key") (Member $51 '"path") (Member $51 '"record")))
  (return (FromFlow (ExpandMap $45 $46)))
))) $21))
(let $23 '('('0 '"Asc") '('"2" '"Asc") '('1 '"Asc")))
(let $24 (DqCnMerge (TDqOutput $22 '0) $23))
(let $25 (DqPhyStage '($24) (lambda '($52) (FromFlow (NarrowMap (ToFlow $52) $20))) '('('"_logical_id" '1450) '('"_id" '"f4d6ee94-28d581d2-b1f630b0-60cf674d"))))
(let $26 '($15 $17 $22 $25))
(let $27 (DqCnResult (TDqOutput $25 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $26 '($27) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $12) '0 '0)) '('('"type" '"query"))))
)
