Did M2 star a cinematographer and star M0 's writer , star , and editor
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M0 .
?x0 ns:film.editor.film M0 .
?x0 ns:film.writer.film M0 .
?x1 a ns:film.cinematographer .
M2 ns:film.film.starring/ns:film.performance.actor ?x0 .
M2 ns:film.film.starring/ns:film.performance.actor ?x1
}