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