Who influenced a person employed by M1 and employed by M2 and was influenced by a screenwriter
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:people.person .
?x0 ns:influence.influence_node.influenced ?x1 .
?x0 ns:influence.influence_node.influenced_by ?x2 .
?x1 a ns:people.person .
?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M2 .
?x2 a ns:film.writer
}