Was M3 directed by a Japanese cinematographer whose child married M2 and produced by M4
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x0 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x1 .
?x0 ns:people.person.nationality ns:m.03_3d .
?x1 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M2 .
FILTER ( ?x1 != M2 ) .
M3 ns:film.film.directed_by ?x0 .
M3 ns:film.film.produced_by|ns:film.film.production_companies M4
}