What actor married M1 , influenced a art director , and married a Japanese spouse of a screenwriter
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.actor .
?x0 ns:influence.influence_node.influenced ?x1 .
?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 ?x2 .
?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 M1 .
?x1 a ns:film.film_art_director .
?x2 ns:people.person.nationality ns:m.03_3d .
?x2 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x3 .
?x3 a ns:film.writer .
FILTER ( ?x0 != ?x2 ) .
FILTER ( ?x0 != M1 ) .
FILTER ( ?x2 != ?x3 )
}