Were M4 and M5 edited by M0 's spouse and directed by a cinematographer that M2 and M3 starred
SELECT count(*) WHERE {
?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 M0 .
?x1 a ns:film.cinematographer .
?x1 ns:film.actor.film/ns:film.performance.film M2 .
?x1 ns:film.actor.film/ns:film.performance.film M3 .
FILTER ( ?x0 != M0 ) .
M4 ns:film.film.directed_by ?x1 .
M4 ns:film.film.edited_by ?x0 .
M5 ns:film.film.directed_by ?x1 .
M5 ns:film.film.edited_by ?x0
}