Who distributed and produced a film whose writer and director married M2
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:people.person .
?x0 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film ?x1 .
?x0 ns:film.producer.film|ns:film.production_company.films ?x1 .
?x1 a ns:film.film .
?x1 ns:film.film.directed_by ?x2 .
?x1 ns:film.film.written_by ?x2 .
?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 M2 .
FILTER ( ?x2 != M2 )
}