enclosing SQL cond with parentheses