In a database search, incorporating parentheses, or nesting, as it is also called, can be used for clarifying relationships between terms, to isolate parts of a query, and to specify the order a search should be run, as the search terms in parentheses are prioritized. Generally, terms in parentheses are linked using Boolean Operators.
In this Atla Religion Database example pictured below, the search below will have results that include Islam and Sufism, Christianity and mysticism, or both.
In this other Atla Religious Database search pictured below, searching Islam AND (Sufism OR mysticism) will have results that address Islam and Sufism as well as Islam and mysticism.