Was M2 a spouse of a film editor whose spouse influenced M1 's art director and director
SELECT count(*) WHERE {
?x0 a ns:film.editor .
?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 ns:influence.influence_node.influenced ?x2 .
?x2 ns:film.director.film M1 .
?x2 ns:film.film_art_director.films_art_directed M1 .
FILTER ( ?x0 != ?x1 ) .
FILTER ( M2 != ?x0 ) .
M2 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x0
}