Did a director of a film 's sequel and prequel direct M0
SELECT count(*) WHERE {
?x0 ns:film.director.film ?x1 .
?x0 ns:film.director.film M0 .
?x1 ns:film.film.prequel ?x2 .
?x1 ns:film.film.sequel ?x2 .
?x2 a ns:film.film
}