What film whose prequel was written by and directed by M2 did M1 direct
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.directed_by M1 .
?x0 ns:film.film.prequel ?x1 .
?x1 ns:film.film.directed_by M2 .
?x1 ns:film.film.written_by M2
}