Was M5 written by a French film producer whose spouse edited M2 , M3 , and M4 and produced by M6
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x0 ns:people.person.nationality ns:m.0f8l9c .
?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 ns:film.editor.film M2 .
?x1 ns:film.editor.film M3 .
?x1 ns:film.editor.film M4 .
FILTER ( ?x0 != ?x1 ) .
M5 ns:film.film.produced_by|ns:film.film.production_companies M6 .
M5 ns:film.film.written_by ?x0
}