What spouse of a employee of M3 and M4 directed M0 and M1 and wrote M2 's sequel
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.director.film M0 .
?x0 ns:film.director.film M1 .
?x0 ns:film.writer.film ?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 .
?x1 ns:film.film.prequel M2 .
?x2 ns:people.person.employment_history/ns:business.employment_tenure.company M3 .
?x2 ns:people.person.employment_history/ns:business.employment_tenure.company M4 .
FILTER ( ?x0 != ?x2 )
}