Did M3 direct M4 and M5 and write a film whose cinematographer executive produced M1 and M2
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.cinematography ?x1 .
?x1 ns:film.producer.films_executive_produced M1 .
?x1 ns:film.producer.films_executive_produced M2 .
M3 ns:film.director.film M4 .
M3 ns:film.director.film M5 .
M3 ns:film.writer.film ?x0
}