Netflix production teams analyze successful collaborations to greenlight future projects. A collaboration is defined as an actor and a director working together on a single movie (identified by timestamp).
Your task is to find all pairs of actor_id and director_id that have collaborated at least three times.
| actor_id(INTEGER) | director_id(INTEGER) | timestamp(INTEGER) |
|---|---|---|
| 1 | 1 | 0 |
| 1 | 1 | 1 |
| 1 | 1 | 2 |
| 1 | 2 | 3 |
| 1 | 2 | 4 |
| 2 | 1 | 5 |
| 2 | 1 | 6 |
| 2 | 1 | 7 |
| actor_id(INTEGER) | actor_name(VARCHAR) |
|---|---|
| 1 | Leonardo DiCaprio |
| 2 | Robert De Niro |
| timestamp(INTEGER) | genre(VARCHAR) |
|---|---|
| 0 | Drama |
| 1 | Thriller |
| 2 | Crime |
| actor_id(INTEGER) | director_id(INTEGER) |
|---|---|
| 1 | 1 |
| 2 | 1 |