Did M3 's prequel 's male writer direct M1 and M2
SELECT count(*) WHERE {
?x0 ns:film.director.film M1 .
?x0 ns:film.director.film M2 .
?x0 ns:film.writer.film ?x1 .
?x0 ns:people.person.gender ns:m.05zppz .
?x1 ns:film.film.sequel M3
}