Was M2 directed by M3 and written by a Japanese art director of a film
SELECT count(*) WHERE {
?x0 ns:film.film_art_director.films_art_directed ?x1 .
?x0 ns:people.person.nationality ns:m.03_3d .
?x1 a ns:film.film .
M2 ns:film.film.directed_by M3 .
M2 ns:film.film.written_by ?x0
}