Did M2 and M3 marry a film director and influence a film producer
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x1 a ns:film.director .
FILTER ( M2 != ?x1 ) .
FILTER ( M3 != ?x1 ) .
M2 ns:influence.influence_node.influenced ?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 ?x1 .
M3 ns:influence.influence_node.influenced ?x0 .
M3 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
}