Was M3 influenced by M2 's writer and influenced by M0 's male actor
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.character M0 .
?x0 ns:people.person.gender ns:m.05zppz .
?x1 ns:film.writer.film M2 .
M3 ns:influence.influence_node.influenced_by ?x0 .
M3 ns:influence.influence_node.influenced_by ?x1
}