Were M3 , M4 , and M5 produced by a Italian costume designer 's spouse and written by a film 's director
SELECT count(*) WHERE {
?x0 ns:film.director.film ?x1 .
?x1 a ns:film.film .
?x2 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x3 .
?x3 a ns:film.film_costumer_designer .
?x3 ns:people.person.nationality ns:m.03rjj .
FILTER ( ?x2 != ?x3 ) .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x2 .
M3 ns:film.film.written_by ?x0 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x2 .
M4 ns:film.film.written_by ?x0 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x2 .
M5 ns:film.film.written_by ?x0
}