Was M2 written by M0 's male executive producer , produced by M4 , and written by M3
SELECT count(*) WHERE {
?x0 ns:film.producer.films_executive_produced M0 .
?x0 ns:people.person.gender ns:m.05zppz .
M2 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M2 ns:film.film.written_by ?x0 .
M2 ns:film.film.written_by M3
}