Was a film director whose spouse directed M4 influenced by M1 , influenced by M2 , and influenced by a character
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:influence.influence_node.influenced_by M1 .
?x0 ns:influence.influence_node.influenced_by M2 .
?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 ?x2 .
?x1 a ns:fictional_universe.fictional_character .
?x2 ns:film.director.film M4 .
FILTER ( ?x0 != ?x2 )
}