Were M2 and M5 distributed by M3 and M4 and produced by a American employee of a film distributor
SELECT count(*) WHERE {
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 .
?x0 ns:people.person.nationality ns:m.09c7w0 .
?x1 a ns:film.film_distributor .
M2 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M3 .
M2 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M4 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M5 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M3 .
M5 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M4 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}