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