Was M3 written by M0 's spouse and written by M2 's sequel 's Japanese director
SELECT count(*) WHERE {
?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 M0 .
?x1 ns:film.director.film ?x2 .
?x1 ns:people.person.nationality ns:m.03_3d .
?x2 ns:film.film.prequel M2 .
FILTER ( ?x0 != M0 ) .
M3 ns:film.film.written_by ?x0 .
M3 ns:film.film.written_by ?x1
}