(
(let $1 '('"key" (DataType 'String)))
(let $2 '('('"_logical_id" '1953) '('"_id" '"d033e97a-eea6a7fe-f0a8e54d-f551e8ca") '('"_wide_channels" (StructType $1))))
(let $3 (DqPhyStage '() (lambda '() (block '(
  (let $8 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $9 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $8)))
  (let $10 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $11 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $12 (YtTable '"Input" $9 $10 $11 '() (Void) (Void) '"/Root/plato"))
  (let $13 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $12 '('"key") (Void) (Void))) '()))))
  (return (FromFlow (WideFilter (DqReadWideWrap $13 '()) (lambda '($14) (!= $14 (String '"020"))))))
))) $2))
(let $4 (DqCnUnionAll (TDqOutput $3 '0)))
(let $5 '('('"_logical_id" '2004) '('"_id" '"4963a11c-db706c2c-7f2380c5-1483c859") '('"_partition_mode" '"aggregate")))
(let $6 (DqPhyStage '($4) (lambda '($15) (block '(
  (let $16 (Chain1Map (NarrowMap (ToFlow $15) (lambda '($17) (AsStruct '('"key" $17)))) (lambda '($18) (block '(
    (let $19 '('_yql_RowNumber0 (Uint64 '1)))
    (return '((AsStruct $19 '('"key" (Member $18 '"key"))) (AsStruct $19)))
  ))) (lambda '($20 $21) (block '(
    (let $22 '('_yql_RowNumber0 (Inc (Member (Nth $21 '1) '_yql_RowNumber0))))
    (return '((AsStruct $22 '('"key" (Member $20 '"key"))) (AsStruct $22)))
  )))))
  (return (FromFlow (OrderedMap $16 (lambda '($23) (block '(
    (let $24 (Nth $23 '0))
    (return (AsStruct '('"key" (Member $24 '"key")) '('"row_num" (Member $24 '_yql_RowNumber0))))
  ))))))
))) $5))
(let $7 (DqCnResult (TDqOutput $6 '0) '('"key" '"row_num")))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($3 $6) '($7) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType $1 '('"row_num" (DataType 'Uint64)))) '0 '0)) '('('"type" '"query"))))
)
