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