Was M3 written by M2 's spouse , executive produced by M4 , and executive produced by M1 's French star
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M1 .
?x0 ns:people.person.nationality ns:m.0f8l9c .
?x1 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 .
FILTER ( ?x1 != M2 ) .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.executive_produced_by M4 .
M3 ns:film.film.written_by ?x1
}