Was M0 's writer and art director influenced by M2 's spouse and influenced by a person
SELECT count(*) WHERE {
?x0 ns:film.film_art_director.films_art_directed M0 .
?x0 ns:film.writer.film M0 .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:influence.influence_node.influenced_by ?x2 .
?x1 a ns:people.person .
?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 M2 .
FILTER ( ?x2 != M2 )
}