Was a art director that M6 and M7 married and M1 , M2 , M3 , and M4 influenced M5 's star
SELECT count(*) WHERE {
?x0 a ns:film.film_art_director .
?x0 ns:film.actor.film/ns:film.performance.film M5 .
?x0 ns:influence.influence_node.influenced_by M1 .
?x0 ns:influence.influence_node.influenced_by M2 .
?x0 ns:influence.influence_node.influenced_by M3 .
?x0 ns:influence.influence_node.influenced_by M4 .
?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 M6 .
?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 M7 .
FILTER ( ?x0 != M6 ) .
FILTER ( ?x0 != M7 )
}