Grafana Stat panel - overwrite

I have a panel with two queries

  1. Response time 20 to 30ms
  2. Response time 30 and above

I am displaying it in stat pannel, now the conditions are,

  1. Count of response time of 20 to 30 is 0 then it should show ok with green colour
  2. Count of response time of 20 to 30 is more than 0, then it should show warning with orange
  3. Count of response time of 30 and above is more than 0, then it should show error with red colour

I was able to achieve first two condition. However when condition 3 comes it shows both warning and error (output of 1or2 and 3). Instead it should replace as a single panel as red. Please suggest!