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