Was M3 written by M1 's French spouse and directed by a production company 's employee
SELECT count(*) WHERE {
?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 M1 .
?x1 ns:people.person.employment_history/ns:business.employment_tenure.company ?x2 .
?x2 a ns:film.production_company .
FILTER ( ?x0 != M1 ) .
M3 ns:film.film.directed_by ?x1 .
M3 ns:film.film.written_by ?x0
}