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