Did a screenwriter influence a film director that was employed by M2 and M3 and marry M4 's writer
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:influence.influence_node.influenced ?x1 .
?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:film.director .
?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M2 .
?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M3 .
?x2 ns:film.writer.film M4 .
FILTER ( ?x0 != ?x2 )
}