Another Solution Using Window Function
SELECT DISTINCT(actor_id), director_id\nFROM(\nSELECT actor_id, director_id , COUNT(timestamp) OVER (Partition by actor_id, director_id) as number_of_times\nFRO
SELECT DISTINCT(actor_id), director_id\nFROM(\nSELECT actor_id, director_id , COUNT(timestamp) OVER (Partition by actor_id, director_id) as number_of_times\nFROM ActorDirector) AS temp\nWHERE number_of_times >= 3
[]