<query id="getDocumentPage" action="select">
    <tables>
        <table name="documents" />
    </tables>
    <columns>
        <column name="count(*)" alias="count" />
    </columns>
    <conditions>
        <condition operation="equal" column="module_srl" var="module_srl" />
        <condition operation="in" column="category_srl" var="categorySrlList" pipe="and" />
        <condition operation="more" column="comment_count" var="comment_count" filter="number" pipe="and" />
        <condition operation="less" column="comment_count" var="rev_comment_count" filter="number" pipe="and" />
        <condition operation="more" column="voted_count" var="voted_count" filter="number" pipe="and" />
        <condition operation="less" column="voted_count" var="rev_voted_count" filter="number" pipe="and" />
        <condition operation="less" column="blamed_count" var="blamed_count" filter="number" pipe="and" />
        <condition operation="more" column="blamed_count" var="rev_blamed_count" filter="number" pipe="and" />
        <condition operation="more" column="readed_count" var="readed_count" filter="number" pipe="and" />
        <condition operation="less" column="readed_count" var="rev_readed_count" filter="number" pipe="and" />
        <condition operation="less" column="list_order" var="list_order" filter="number" pipe="and" />
        <condition operation="more" column="list_order" var="rev_list_order" filter="number" pipe="and" />
        <condition operation="more" column="title" var="title" filter="number" pipe="and" />
        <condition operation="less" column="title" var="rev_title" filter="number" pipe="and" />
        <condition operation="more" column="regdate" var="regdate" filter="number" pipe="and" />
        <condition operation="less" column="regdate" var="rev_regdate" filter="number" pipe="and" />
        <condition operation="less" column="update_order" var="update_order" filter="number" pipe="and" />
        <condition operation="more" column="update_order" var="rev_update_order" filter="number" pipe="and" />
        <condition operation="in" column="status" var="statusList" pipe="and" />
        <group pipe="and">
            <condition operation="like" column="title" var="s_title" />
            <condition operation="like" column="content" var="s_content" pipe="or" />
            <condition operation="like" column="user_name" var="s_user_name" pipe="or" />
            <condition operation="like" column="user_id" var="s_user_id" pipe="or" />
            <condition operation="like" column="nick_name" var="s_nick_name" pipe="or" />
            <condition operation="like" column="email_address" var="s_email_addres" pipe="or" />
            <condition operation="like" column="homepage" var="s_homepage" pipe="or" />
            <condition operation="like" column="tags" var="s_tags" pipe="or" />
            <condition operation="equal" column="member_srl" var="s_member_srl" pipe="or" />
            <condition operation="more" column="readed_count" var="s_readed_count" pipe="or" />
            <condition operation="more" column="voted_count" var="s_voted_count" pipe="or" />
            <condition operation="less" column="blamed_count" var="s_blamed_count" pipe="or" />
            <condition operation="more" column="comment_count" var="s_comment_count" pipe="or" />
            <condition operation="more" column="trackback_count" var="s_trackback_count" pipe="or" />
            <condition operation="more" column="uploaded_count" var="s_uploaded_count" pipe="or" />
            <condition operation="like_prefix" column="regdate" var="s_regdate" pipe="or" />
            <condition operation="like_prefix" column="last_update" var="s_last_update" pipe="or" />
            <condition operation="like_prefix" column="ipaddress" var="s_ipaddress" pipe="or" />
        </group>
    </conditions>
</query>
