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