Were M3 and M4 written by a producer and star of M2 and executive produced by M0 's female writer
SELECT count(*) WHERE {
?x0 ns:film.writer.film M0 .
?x0 ns:people.person.gender ns:m.02zsn .
?x1 ns:film.actor.film/ns:film.performance.film M2 .
?x1 ns:film.producer.film|ns:film.production_company.films M2 .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.written_by ?x1 .
M4 ns:film.film.executive_produced_by ?x0 .
M4 ns:film.film.written_by ?x1
}