Were M4 and M5 influenced by a editor and writer of M2 and M3 and influenced by a male person
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:people.person.gender ns:m.05zppz .
?x1 ns:film.editor.film M2 .
?x1 ns:film.editor.film M3 .
?x1 ns:film.writer.film M2 .
?x1 ns:film.writer.film M3 .
M4 ns:influence.influence_node.influenced_by ?x0 .
M4 ns:influence.influence_node.influenced_by ?x1 .
M5 ns:influence.influence_node.influenced_by ?x0 .
M5 ns:influence.influence_node.influenced_by ?x1
}