Were M3 and M5 edited by M2 's actor , executive produced by M0 's male actor , and directed by M4
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.character M0 .
?x0 ns:people.person.gender ns:m.05zppz .
?x1 ns:film.actor.film/ns:film.performance.character M2 .
M3 ns:film.film.directed_by M4 .
M3 ns:film.film.edited_by ?x1 .
M3 ns:film.film.executive_produced_by ?x0 .
M5 ns:film.film.directed_by M4 .
M5 ns:film.film.edited_by ?x1 .
M5 ns:film.film.executive_produced_by ?x0
}