Were M5 and M6 directed by a person influenced by M1 , M2 , and M3 and influenced by M4
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 .
?x0 ns:influence.influence_node.influenced_by M4 .
M5 ns:film.film.directed_by ?x0 .
M6 ns:film.film.directed_by ?x0
}