Попробуй такой вариант. У меня доступа нет к твоей таблице и бд, поэтому смог проверить только с первыми двумя условиями:
SELECT id, project_id, sum_1, sum_2
FROM [mytable] as tbl
WHERE
sum_2 IN (
SELECT sum_2
FROM [mytable]
WHERE project_id = tbl.project_id
GROUP BY project_id, sum_2
HAVING count(sum_2) > 1)
AND project_id IN (
SELECT project_id
FROM [mytable]
GROUP BY project_id, sum_2
HAVING count(sum_2) > 1)
По идее такой вариант должен быть рабочим:
SELECT id, project_id, sum_1, sum_2
FROM [mytable] as tbl
WHERE
sum_1 IN (
SELECT sum_1
FROM [mytable]
WHERE project_id = tbl.project_id
GROUP BY project_id, sum_1
HAVING count(sum_1) < 2)
sum_2 IN (
SELECT sum_2
FROM [mytable]
WHERE project_id = tbl.project_id
GROUP BY project_id, sum_2
HAVING count(sum_2) > 1)
AND project_id IN (
SELECT project_id
FROM [mytable]
GROUP BY project_id, sum_2
HAVING count(sum_2) > 1)
AND project_id IN (
SELECT project_id
FROM [mytable]
GROUP BY project_id, sum_1
HAVING count(sum_1) < 2)
Ещё нужно учитывать, что код не оптимизированный для выполнения на рабочем сервере ввиду использования подзапросов.