Faster than 97% of solutions with CONCAT, GROUP BY and HAVING
select A.actor_id , A.director_id\nfrom ActorDirector A\nGROUP BY CONCAT(A.actor_id ,"_", A.director_id)\nHAVING COUNT(*) >= 3
select A.actor_id , A.director_id\nfrom ActorDirector A\nGROUP BY CONCAT(A.actor_id ,"_", A.director_id)\nHAVING COUNT(*) >= 3
[]