What was edited by a costume designer , written by a film director , and written by a spouse of M1 's employee
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.edited_by ?x1 .
?x0 ns:film.film.written_by ?x2 .
?x0 ns:film.film.written_by ?x3 .
?x1 a ns:film.film_costumer_designer .
?x2 a ns:film.director .
?x3 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x4 .
?x4 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
FILTER ( ?x3 != ?x4 )
}