Was M3 produced by a Japanese person that M2 's writer and producer married and directed by M4
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:people.person.nationality ns:m.03_3d .
?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x1 .
?x1 ns:film.producer.film|ns:film.production_company.films M2 .
?x1 ns:film.writer.film M2 .
FILTER ( ?x0 != ?x1 ) .
M3 ns:film.film.directed_by M4 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}