Was M3 influenced by a screenwriter , influenced by a costume designer 's female spouse , and influenced by M4
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x1 ns:people.person.gender ns:m.02zsn .
?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 ?x2 .
?x2 a ns:film.film_costumer_designer .
FILTER ( ?x1 != ?x2 ) .
M3 ns:influence.influence_node.influenced_by ?x0 .
M3 ns:influence.influence_node.influenced_by ?x1 .
M3 ns:influence.influence_node.influenced_by M4
}