<query id="getDocumentSrlByAlias" action="select">
    <tables>
        <table name="document_aliases" />
        <table name="modules" />
    </tables>
    <columns>
        <column name="document_srl" />
    </columns>
    <conditions>
        <condition operation="equal" column="alias_title" var="alias_title" notnull="notnull" />
        <condition operation="equal" column="modules.site_srl" var="site_srl" filter="number" notnull="notnull" pipe="and" />
        <condition operation="equal" column="modules.mid" var="mid" notnull="notnull" pipe="and" />
        <condition operation="equal" column="modules.module_srl" var="document_aliases.module_srl" filter="number" notnull="notnull" pipe="and" />
    </conditions>
</query>
