Was M5 influenced by a character that M1 and M2 were executive produced by and M3 and M4 were directed by
SELECT count(*) WHERE {
?x0 a ns:fictional_universe.fictional_character .
?x0 ns:film.director.film M3 .
?x0 ns:film.director.film M4 .
?x0 ns:film.producer.films_executive_produced M1 .
?x0 ns:film.producer.films_executive_produced M2 .
M5 ns:influence.influence_node.influenced_by ?x0
}