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