Were M1 and M5 employed by a actor 's employer , employed by M2 , and employed by M3 and M4
SELECT count(*) WHERE {
?x0 ns:business.employer.employees/ns:business.employment_tenure.person ?x1 .
?x1 a ns:film.actor .
M1 ns:people.person.employment_history/ns:business.employment_tenure.company ?x0 .
M1 ns:people.person.employment_history/ns:business.employment_tenure.company M2 .
M1 ns:people.person.employment_history/ns:business.employment_tenure.company M3 .
M1 ns:people.person.employment_history/ns:business.employment_tenure.company M4 .
M5 ns:people.person.employment_history/ns:business.employment_tenure.company ?x0 .
M5 ns:people.person.employment_history/ns:business.employment_tenure.company M2 .
M5 ns:people.person.employment_history/ns:business.employment_tenure.company M3 .
M5 ns:people.person.employment_history/ns:business.employment_tenure.company M4
}