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:

Or you can use the limit clause with influxql: