Were M4 and M5 influenced by a film editor and influenced by a cinematographer and writer of M1 , M2 , and M3
SELECT count(*) WHERE {
?x0 a ns:film.editor .
?x1 ns:film.cinematographer.film M1 .
?x1 ns:film.cinematographer.film M2 .
?x1 ns:film.cinematographer.film M3 .
?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 .
M5 ns:influence.influence_node.influenced_by ?x0 .
M5 ns:influence.influence_node.influenced_by ?x1
}