(
(let $1 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
(let $2 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $1)))
(let $3 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
(let $4 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $5 (YtTable '"Input" $2 $3 $4 '() (Void) (Void) '"/Root/plato"))
(let $6 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $5 '('"key") (Void) (Void))) '()))))
(let $7 (DqReadWideWrap $6 '()))
(let $8 '('"_logical_id" '1368))
(let $9 (DataType 'String))
(let $10 (StructType '('"key" $9) '('"path" $9) '('"record" (DataType 'Uint64))))
(let $11 '('"_wide_channels" $10))
(let $12 '($8 '('"_id" '"8ac50074-efe8278e-43ec540f-643fe4d2") $11))
(let $13 (DqPhyStage '() (lambda '() (block '(
  (let $26 (lambda '($27) (block '(
    (let $28 (DependsOn (AsStruct '('"key" $27))))
    (return $27 (TablePath $28) (TableRecord $28))
  ))))
  (return (FromFlow (WideMap $7 $26)))
))) $12))
(let $14 '($8 '('"_id" '"e0e33f09-29ba720-5e4c8886-4dbcd1e6") $11))
(let $15 (DqPhyStage '() (lambda '() (block '(
  (let $29 (lambda '($30) $30 (String '"d") (TableRecord (DependsOn (AsStruct '('"key" $30))))))
  (return (FromFlow (WideMap $7 $29)))
))) $14))
(let $16 (DqCnParallelUnionAll (TDqOutput $13 '0)))
(let $17 (DqCnParallelUnionAll (TDqOutput $15 '0)))
(let $18 (lambda '($37 $38 $39) (AsStruct '('"key" $37) '('"path" $38) '('"record" $39))))
(let $19 '('('"_logical_id" '1460) '('"_id" '"6d22a8fd-7773317e-412fad4d-ac49b3fa") $11))
(let $20 (DqPhyStage '($16 $17) (lambda '($31 $32) (block '(
  (let $33 (Bool 'true))
  (let $34 '($33 $33 $33))
  (let $35 (Sort (Extend (NarrowMap (ToFlow $31) $18) (NarrowMap (ToFlow $32) $18)) $34 (lambda '($40) '((Member $40 '"key") (Member $40 '"record") (Member $40 '"path")))))
  (let $36 (lambda '($41) (Member $41 '"key") (Member $41 '"path") (Member $41 '"record")))
  (return (FromFlow (ExpandMap $35 $36)))
))) $19))
(let $21 '('('0 '"Asc") '('"2" '"Asc") '('1 '"Asc")))
(let $22 (DqCnMerge (TDqOutput $20 '0) $21))
(let $23 (DqPhyStage '($22) (lambda '($42) (FromFlow (NarrowMap (ToFlow $42) $18))) '('('"_logical_id" '1472) '('"_id" '"4d759d3e-4bcfab9d-1c811c11-b8422e5a"))))
(let $24 '($13 $15 $20 $23))
(let $25 (DqCnResult (TDqOutput $23 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $24 '($25) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $10) '0 '0)) '('('"type" '"query"))))
)
