Was M2 a actor that influenced M4 and M5 and was influenced by a male art director of M1
SELECT count(*) WHERE {
?x0 ns:film.film_art_director.films_art_directed M1 .
?x0 ns:people.person.gender ns:m.05zppz .
M2 a ns:film.actor .
M2 ns:influence.influence_node.influenced M4 .
M2 ns:influence.influence_node.influenced M5 .
M2 ns:influence.influence_node.influenced_by ?x0
}