Were M2 and M5 written by M1 's distributor 's Japanese employee , produced by M4 , and written by M3
SELECT count(*) WHERE {
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 .
?x0 ns:people.person.nationality ns:m.03_3d .
?x1 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film M1 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M2 ns:film.film.written_by ?x0 .
M2 ns:film.film.written_by M3 .
M5 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M5 ns:film.film.written_by ?x0 .
M5 ns:film.film.written_by M3
}