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