Which film director married M2 's female costume designer 's spouse and married M1
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.director .
?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 .
?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 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 .
?x2 ns:film.film_costumer_designer.costume_design_for_film M2 .
?x2 ns:people.person.gender ns:m.02zsn .
FILTER ( ?x0 != ?x1 ) .
FILTER ( ?x0 != M1 ) .
FILTER ( ?x1 != ?x2 )
}