Were M2 and M4 produced by a male person 's actor and produced by M3
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.character ?x1 .
?x1 a ns:people.person .
?x1 ns:people.person.gender ns:m.05zppz .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M4 ns:film.film.produced_by|ns:film.film.production_companies M3
}