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