Which writer of M1 and M2 was a cinematographer that M4 's prequel was directed by and M3 starred
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.cinematographer .
?x0 ns:film.actor.film/ns:film.performance.film M3 .
?x0 ns:film.director.film ?x1 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
?x1 ns:film.film.sequel M4
}