Were M3 , M4 , M5 , and M6 written by a cinematographer that M1 and M2 influenced
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x0 ns:influence.influence_node.influenced_by M1 .
?x0 ns:influence.influence_node.influenced_by M2 .
M3 ns:film.film.written_by ?x0 .
M4 ns:film.film.written_by ?x0 .
M5 ns:film.film.written_by ?x0 .
M6 ns:film.film.written_by ?x0
}