Were M1 and M4 influenced by M0 's writer , director , and cinematographer and influenced by M2 and M3
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film M0 .
?x0 ns:film.director.film M0 .
?x0 ns:film.writer.film M0 .
M1 ns:influence.influence_node.influenced_by ?x0 .
M1 ns:influence.influence_node.influenced_by M2 .
M1 ns:influence.influence_node.influenced_by M3 .
M4 ns:influence.influence_node.influenced_by ?x0 .
M4 ns:influence.influence_node.influenced_by M2 .
M4 ns:influence.influence_node.influenced_by M3
}