Was M3 directed by a screenwriter 's spouse , edited by a cinematographer of M0 and M1 , and edited by M4
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film M0 .
?x0 ns:film.cinematographer.film M1 .
?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 a ns:film.writer .
FILTER ( ?x1 != ?x2 ) .
M3 ns:film.film.directed_by ?x1 .
M3 ns:film.film.edited_by ?x0 .
M3 ns:film.film.edited_by M4
}