Alert result query

good morning everyone, I’m trying to work with alerts but I couldn’t find examples in the case I need, I have a postgresql query that can’t have a value > 0, I want to create an alert where the value is > 0 it sends me the email with the data as in the attached example

Grafana 8.4.3 version