rollback criteria for complex query