Were M3 and M5 directed by a employee of M0 and M1 , edited by M4 , and directed by a cinematographer
SELECT count(*) WHERE {
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M0 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
?x1 a ns:film.cinematographer .
M3 ns:film.film.directed_by ?x0 .
M3 ns:film.film.directed_by ?x1 .
M3 ns:film.film.edited_by M4 .
M5 ns:film.film.directed_by ?x0 .
M5 ns:film.film.directed_by ?x1 .
M5 ns:film.film.edited_by M4
}