<query id="getDeclaredList" action="select">
    <tables>
        <table name="documents" alias="documents"/>
        <table name="document_declared" alias="document_declared"/>
    </tables>
    <columns>
        <column name="*" />
    </columns>
    <conditions>
        <condition operation="in" column="documents.document_srl" default="document_declared.document_srl" />
    </conditions>
    <navigation>
        <index var="sort_index" default="document_declared.declared_count" order="order_type" />
        <list_count var="list_count" default="20" />
        <page_count var="page_count" default="10" />
        <page var="page" default="1" />
    </navigation>
</query>
