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