Was M2 's actor employed by M0 , employed by M1 , and employed by M3 's producer
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.character M2 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 .
?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 ns:film.producer.film|ns:film.production_company.films M3
}