<query id="getLoginCountByIp" action="select">
    <tables>
        <table name="member_login_count" />
    </tables>
    <columns>
        <column name="*" />
    </columns>
    <conditions>
        <condition operation="equal" column="ipaddress" var="ipaddress" />
    </conditions>
</query>