Was M0 a cinematographer that M3 was executive produced by and M2 was written by
SELECT count(*) WHERE {
M0 a ns:film.cinematographer .
M0 ns:film.producer.films_executive_produced M3 .
M0 ns:film.writer.film M2
}