Fold select + select where both selects are on the same condition.