What was produced by a screenwriter 's employer 's employee 's spouse and distributed by M0 , M1 , and M2
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M0 .
?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M1 .
?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M2 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?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:people.person.employment_history/ns:business.employment_tenure.company ?x3 .
?x3 ns:business.employer.employees/ns:business.employment_tenure.person ?x4 .
?x4 a ns:film.writer .
FILTER ( ?x1 != ?x2 )
}