MySQL solution in 4 lines
\nselect actor_id, director_id\nfrom actordirector\ngroup by actor_id, director_id\nhaving count(1)>= 3\n
```\nselect actor_id, director_id\nfrom actordirector\ngroup by actor_id, director_id\nhaving count(1)>= 3\n```
['MySQL']