Was M5 directed by a British star of M3 and M4 and written by a Italian person '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:people.person .
?x1 ns:people.person.nationality ns:m.03rjj .
?x2 ns:film.actor.film/ns:film.performance.film M3 .
?x2 ns:film.actor.film/ns:film.performance.film M4 .
?x2 ns:people.person.nationality ns:m.07ssc .
FILTER ( ?x0 != ?x1 ) .
M5 ns:film.film.directed_by ?x2 .
M5 ns:film.film.written_by ?x0
}