Was M2 a person that a star and executive producer of M0 and M1 was influenced by and M4 was influenced by
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M0 .
?x0 ns:film.actor.film/ns:film.performance.film M1 .
?x0 ns:film.producer.films_executive_produced M0 .
?x0 ns:film.producer.films_executive_produced M1 .
M2 a ns:people.person .
M2 ns:influence.influence_node.influenced ?x0 .
M2 ns:influence.influence_node.influenced M4
}