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