Were M3 , M4 , and M5 executive produced by a screenwriter , written by M1 's actor , and edited by a cinematographer
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x1 ns:film.actor.film/ns:film.performance.character M1 .
?x2 a ns:film.cinematographer .
M3 ns:film.film.edited_by ?x2 .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.written_by ?x1 .
M4 ns:film.film.edited_by ?x2 .
M4 ns:film.film.executive_produced_by ?x0 .
M4 ns:film.film.written_by ?x1 .
M5 ns:film.film.edited_by ?x2 .
M5 ns:film.film.executive_produced_by ?x0 .
M5 ns:film.film.written_by ?x1
}