(
(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 '((YtPath $6 '('"key" '"value") (Void) (Void))))
(let $8 (DataType 'String))
(let $9 (StructType '('"key" $8) '('"path" $8) '('"record" (DataType 'Uint64)) '('"value" $8)))
(let $10 '('"_wide_channels" $9))
(let $11 '('('"_logical_id" '1428) '('"_id" '"4a47cacf-c1dba3f1-95f19d63-8cca09df") $10))
(let $12 (DqPhyStage '() (lambda '() (block '(
  (let $25 (YtReadTable! world $1 '((YtSection $7 '('('"syscolumns" '('"path" '"record")))))))
  (let $26 (lambda '($27 $28 $29 $30) $29 $27 $28 $30))
  (return (FromFlow (WideMap (DqReadWideWrap $25 '()) $26)))
))) $11))
(let $13 '('('"_logical_id" '1457) '('"_id" '"3f45d9bb-144cd23f-882627ef-806c09b1") $10))
(let $14 (DqPhyStage '() (lambda '() (block '(
  (let $31 (YtReadTable! world $1 '((YtSection $7 '('('"syscolumns" '('"record")))))))
  (let $32 (lambda '($33 $34 $35) $34 (String '"") $33 $35))
  (return (FromFlow (WideMap (DqReadWideWrap $31 '()) $32)))
))) $13))
(let $15 (DqCnParallelUnionAll (TDqOutput $12 '0)))
(let $16 (DqCnParallelUnionAll (TDqOutput $14 '0)))
(let $17 (lambda '($42 $43 $44 $45) (AsStruct '('"key" $42) '('"path" $43) '('"record" $44) '('"value" $45))))
(let $18 '('('"_logical_id" '1555) '('"_id" '"35363c45-3fed2806-74931c1c-1442cb03") $10))
(let $19 (DqPhyStage '($15 $16) (lambda '($36 $37) (block '(
  (let $38 (Bool 'true))
  (let $39 '($38 $38 $38))
  (let $40 (Sort (Extend (NarrowMap (ToFlow $36) $17) (NarrowMap (ToFlow $37) $17)) $39 (lambda '($46) '((Member $46 '"key") (Member $46 '"path") (Member $46 '"record")))))
  (let $41 (lambda '($47) (Member $47 '"key") (Member $47 '"path") (Member $47 '"record") (Member $47 '"value")))
  (return (FromFlow (ExpandMap $40 $41)))
))) $18))
(let $20 '('('0 '"Asc") '('1 '"Asc") '('"2" '"Asc")))
(let $21 (DqCnMerge (TDqOutput $19 '0) $20))
(let $22 (DqPhyStage '($21) (lambda '($48) (FromFlow (NarrowMap (ToFlow $48) $17))) '('('"_logical_id" '1567) '('"_id" '"c772fb81-6cc0abd5-fe3b4911-8d213125"))))
(let $23 '($12 $14 $19 $22))
(let $24 (DqCnResult (TDqOutput $22 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $23 '($24) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $9) '0 '0)) '('('"type" '"query"))))
)
