Were M2 and M4 produced by M3 and written by M1 's prequel 's female executive producer
SELECT count(*) WHERE {
?x0 ns:film.producer.films_executive_produced ?x1 .
?x0 ns:people.person.gender ns:m.02zsn .
?x1 ns:film.film.sequel M1 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M2 ns:film.film.written_by ?x0 .
M4 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M4 ns:film.film.written_by ?x0
}