Was M2 directed by M3 , M4 , and M5 , written by a film 's producer , and edited by M1 's cinematographer
SELECT count(*) WHERE {
?x0 ns:film.producer.film|ns:film.production_company.films ?x1 .
?x1 a ns:film.film .
?x2 ns:film.cinematographer.film M1 .
M2 ns:film.film.directed_by M3 .
M2 ns:film.film.directed_by M4 .
M2 ns:film.film.directed_by M5 .
M2 ns:film.film.edited_by ?x2 .
M2 ns:film.film.written_by ?x0
}