Was M1 directed by a director , editor , and cinematographer of M0 and written by M2
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film M0 .
?x0 ns:film.director.film M0 .
?x0 ns:film.editor.film M0 .
M1 ns:film.film.directed_by ?x0 .
M1 ns:film.film.written_by M2
}