Was M3 edited by and written by a male person that M2 's star influenced
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:people.person.gender ns:m.05zppz .
?x1 ns:film.actor.film/ns:film.performance.film M2 .
M3 ns:film.film.edited_by ?x0 .
M3 ns:film.film.written_by ?x0
}