Sum to Influx query InfluxQL vs Flux

Hello. I do have that query in InfluxQL:

SELECT last(“v”) +10 FROM “xxxxxx” WHERE (“Des.Ubicacion” =‘ServicioCámara7’ AND “TipodeDato” = ‘SP_PROCESO’) fill(previous)

I do want to convert that + 10 to flux or be able to execute the same query to InfluxDB 2

Can you help with that?
Thank you.

Hello,
Yes you can use the tail() function with InfluxDB 2:
https://docs.influxdata.com/influxdb/cloud/reference/flux/stdlib/built-in/transformations/tail/

Or you can use the limit clause with influxql:
https://docs.influxdata.com/influxdb/v1.7/query_language/data_exploration/#the-limit-and-slimit-clauses