Was M4 edited by a person influenced by M1 and influenced by M2 and M3 and written by M5
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:influence.influence_node.influenced_by M1 .
?x0 ns:influence.influence_node.influenced_by M2 .
?x0 ns:influence.influence_node.influenced_by M3 .
M4 ns:film.film.edited_by ?x0 .
M4 ns:film.film.written_by M5
}