modified SQL to ensure interaction terms don't include the exposure variable