Were M3 , M5 , and M6 employed by a company that distributed M1 and M2 and employed by M4
SELECT count(*) WHERE {
?x0 a ns:business.employer .
?x0 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film M1 .
?x0 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film M2 .
M3 ns:people.person.employment_history/ns:business.employment_tenure.company ?x0 .
M3 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 M4 .
M6 ns:people.person.employment_history/ns:business.employment_tenure.company ?x0 .
M6 ns:people.person.employment_history/ns:business.employment_tenure.company M4
}