Did M3 and M5 influence a character that directed M2 and wrote M1 and influence M4
SELECT count(*) WHERE {
?x0 a ns:fictional_universe.fictional_character .
?x0 ns:film.director.film M2 .
?x0 ns:film.writer.film M1 .
M3 ns:influence.influence_node.influenced ?x0 .
M3 ns:influence.influence_node.influenced M4 .
M5 ns:influence.influence_node.influenced ?x0 .
M5 ns:influence.influence_node.influenced M4
}