What screenwriter influenced a female employee of M3 , M4 , and M5 and was influenced by M1 and M2
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.writer .
?x0 ns:influence.influence_node.influenced ?x1 .
?x0 ns:influence.influence_node.influenced_by M1 .
?x0 ns:influence.influence_node.influenced_by M2 .
?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M3 .
?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M4 .
?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M5 .
?x1 ns:people.person.gender ns:m.02zsn
}