Did a male person write M3 's prequel and executive produce M1
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:film.producer.films_executive_produced M1 .
?x0 ns:film.writer.film ?x1 .
?x0 ns:people.person.gender ns:m.05zppz .
?x1 ns:film.film.sequel M3
}