Were M2 , M3 , and M4 edited by and written by a cinematographer whose employer employed M1
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 .
?x1 ns:business.employer.employees/ns:business.employment_tenure.person M1 .
M2 ns:film.film.edited_by ?x0 .
M2 ns:film.film.written_by ?x0 .
M3 ns:film.film.edited_by ?x0 .
M3 ns:film.film.written_by ?x0 .
M4 ns:film.film.edited_by ?x0 .
M4 ns:film.film.written_by ?x0
}