Was M0 's actor employed by a production company and employed by M1 's employer
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.character M0 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x2 .
?x1 ns:business.employer.employees/ns:business.employment_tenure.person M1 .
?x2 a ns:film.production_company
}