Was M3 edited by M4 and written by a French art director 's female spouse
SELECT count(*) WHERE {
?x0 ns:people.person.gender ns:m.02zsn .
?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.film_art_director .
?x1 ns:people.person.nationality ns:m.0f8l9c .
FILTER ( ?x0 != ?x1 ) .
M3 ns:film.film.edited_by M4 .
M3 ns:film.film.written_by ?x0
}