SELECT H.hacker_id, H.name FROM challenges AS C
JOIN difficulty AS D ON C.difficulty_level = D.difficulty_level
JOIN submissions AS S ON C.hacker_id = S.hacker_id
JOIN hackers AS H ON C.hacker_id = H.hacker_id
WHERE (D.score = S.score)
GROUP BY C.hacker_id
HAVING COUNT(*) > 1
ORDER BY COUNT(*) DESC, C.hacker_id;
In [ ]: