restricting if-filters to inner joins