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