Did a screenwriter write M2 's sequel , write a film , and direct M1
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:film.director.film M1 .
?x0 ns:film.writer.film ?x1 .
?x0 ns:film.writer.film ?x2 .
?x1 ns:film.film.prequel M2 .
?x2 a ns:film.film
}