Did M2 star a cinematographer of M0 , star M3 , and star a cinematographer
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.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 .
M2 ns:film.film.starring/ns:film.performance.actor M3
}