Were M3 and M5 written by M4 and edited by a British Canadian film director 's spouse
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 ?x1 .
?x1 a ns:film.director .
?x1 ns:people.person.nationality ns:m.07ssc .
?x1 ns:people.person.nationality ns:m.0d060g .
FILTER ( ?x0 != ?x1 ) .
M3 ns:film.film.edited_by ?x0 .
M3 ns:film.film.written_by M4 .
M5 ns:film.film.edited_by ?x0 .
M5 ns:film.film.written_by M4
}