Was a film produced by a film editor 's spouse and produced by M2 's employer
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x2 .
?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 ?x3 .
?x2 ns:business.employer.employees/ns:business.employment_tenure.person M2 .
?x3 a ns:film.editor .
FILTER ( ?x1 != ?x3 )
}