Was M2 executive produced by a screenwriter , executive produced by a cinematographer , written by M4 , and executive produced by M3
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x1 a ns:film.cinematographer .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.executive_produced_by ?x1 .
M2 ns:film.film.executive_produced_by M3 .
M2 ns:film.film.written_by M4
}