What was written by M0 , directed by a screenwriter , written by M1 's writer , and directed by a film director
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.directed_by ?x1 .
?x0 ns:film.film.directed_by ?x2 .
?x0 ns:film.film.written_by ?x3 .
?x0 ns:film.film.written_by M0 .
?x1 a ns:film.writer .
?x2 a ns:film.director .
?x3 ns:film.writer.film M1
}