So i have these two queries, with data coming from an influx database.
I am running v7.5.4
have you reviewed the templating documentation for legacy alerting?