Simple 3 line code | mysql
select actor_id,director_id from actordirector\ngroup by director_id,actor_id\nhaving count(director_id)>=3
select actor_id,director_id from actordirector\ngroup by director_id,actor_id\nhaving count(director_id)>=3
['MySQL']