<query id="isDeniedIP" action="select">
    <tables>
        <table name="spamfilter_denied_ip" />
    </tables>
    <columns>
        <column name="count(*)" alias="count" />
    </columns>
    <conditions>
        <condition operation="equal" column="ipaddress" default="ipaddress()" notnull="notnull" />
    </conditions>
</query>
