Was M2 influenced by M0 's spouse and influenced by M1 's star , director , and writer
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 M0 .
?x1 ns:film.actor.film/ns:film.performance.film M1 .
?x1 ns:film.director.film M1 .
?x1 ns:film.writer.film M1 .
FILTER ( ?x0 != M0 ) .
M2 ns:influence.influence_node.influenced_by ?x0 .
M2 ns:influence.influence_node.influenced_by ?x1
}