Were M3 , M4 , M5 , and M6 edited by a film producer that M2 married and edited by M0 's editor
SELECT count(*) WHERE {
?x0 ns:film.editor.film M0 .
?x1 a ns:film.producer .
?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 M2 .
FILTER ( ?x1 != M2 ) .
M3 ns:film.film.edited_by ?x0 .
M3 ns:film.film.edited_by ?x1 .
M4 ns:film.film.edited_by ?x0 .
M4 ns:film.film.edited_by ?x1 .
M5 ns:film.film.edited_by ?x0 .
M5 ns:film.film.edited_by ?x1 .
M6 ns:film.film.edited_by ?x0 .
M6 ns:film.film.edited_by ?x1
}