Were M2 and M5 influenced by M3 and M4 and influenced by a actor that a film was executive produced by
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x0 ns:film.producer.films_executive_produced ?x1 .
?x1 a ns:film.film .
M2 ns:influence.influence_node.influenced_by ?x0 .
M2 ns:influence.influence_node.influenced_by M3 .
M2 ns:influence.influence_node.influenced_by M4 .
M5 ns:influence.influence_node.influenced_by ?x0 .
M5 ns:influence.influence_node.influenced_by M3 .
M5 ns:influence.influence_node.influenced_by M4
}