How to make my query?


I’m logging in different temperatures.of a fridge

One of them is suposed to stay below a certain level, stay under that limit for a certain amount of time and then going up again as shown in the following Grafana’s dashboard snapshot

I would like to automatically get the time the fridge stayed under the -20°C limit.
How could I make my request ?