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