Remove parens around foreign tables in the joins