Add parenthesis for FROM sql