Was M0 's prequel edited and written by a actor 's spouse
SELECT count(*) WHERE {
?x0 ns:film.film.edited_by ?x1 .
?x0 ns:film.film.sequel M0 .
?x0 ns:film.film.written_by ?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 a ns:film.actor .
FILTER ( ?x1 != ?x2 )
}