Did M3 and M4 distribute and produce a film directed by M1 and directed by a cinematographer
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.directed_by ?x1 .
?x0 ns:film.film.directed_by M1 .
?x1 a ns:film.cinematographer .
M3 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film ?x0 .
M3 ns:film.producer.film|ns:film.production_company.films ?x0 .
M4 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film ?x0 .
M4 ns:film.producer.film|ns:film.production_company.films ?x0
}