Did M2 's cinematographer and director edit M0 , produce a film , and write M1
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film M2 .
?x0 ns:film.director.film M2 .
?x0 ns:film.editor.film M0 .
?x0 ns:film.producer.film|ns:film.production_company.films ?x1 .
?x0 ns:film.writer.film M1 .
?x1 a ns:film.film
}