Making Unions work with IN/EXISTS