Did a spouse of M2 direct M3 , write M0 and M1 , and edit a film
SELECT count(*) WHERE {
?x0 ns:film.director.film M3 .
?x0 ns:film.editor.film ?x1 .
?x0 ns:film.writer.film M0 .
?x0 ns:film.writer.film M1 .
?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 M2 .
?x1 a ns:film.film .
FILTER ( ?x0 != M2 )
}