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