Were M3 and M5 executive produced by M0 's female executive producer , written by a screenwriter , and executive produced by M4
SELECT count(*) WHERE {
?x0 ns:film.producer.films_executive_produced M0 .
?x0 ns:people.person.gender ns:m.02zsn .
?x1 a ns:film.writer .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.executive_produced_by M4 .
M3 ns:film.film.written_by ?x1 .
M5 ns:film.film.executive_produced_by ?x0 .
M5 ns:film.film.executive_produced_by M4 .
M5 ns:film.film.written_by ?x1
}