Was M3 directed by a Japanese employee of M0 and M1 , edited by M5 , and written by M4
SELECT count(*) WHERE {
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M0 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
?x0 ns:people.person.nationality ns:m.03_3d .
M3 ns:film.film.directed_by ?x0 .
M3 ns:film.film.edited_by M5 .
M3 ns:film.film.written_by M4
}