Did a Japanese film director that M1 and M2 were written by and M5 and M6 starred write M3
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x0 ns:film.actor.film/ns:film.performance.film M5 .
?x0 ns:film.actor.film/ns:film.performance.film M6 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
?x0 ns:film.writer.film M3 .
?x0 ns:people.person.nationality ns:m.03_3d
}