Were M3 and M5 edited by M4 and produced by a person that M1 and M2 employed
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M2 .
M3 ns:film.film.edited_by M4 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M5 ns:film.film.edited_by M4 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}