Add guards and only allow sp procedure with IN/EXISTS