<query id="getAddonIsActivated" action="select">
    <tables>
      <table name="addons" />
    </tables>
    <columns>
      <column name="count(*)" alias="count" />
    </columns>
    <conditions>
      <condition operation="equal" column="addon" var="addon" notnull="notnull" />
      <condition operation="equal" column="is_used" default="Y" notnull="notnull" pipe="and" />
    </conditions>
</query>
