Were M3 and M5 employed by M4 and employed by a company whose female employee was influenced by M1
SELECT count(*) WHERE {
?x0 a ns:business.employer .
?x0 ns:business.employer.employees/ns:business.employment_tenure.person ?x1 .
?x1 ns:influence.influence_node.influenced_by M1 .
?x1 ns:people.person.gender ns:m.02zsn .
M3 ns:people.person.employment_history/ns:business.employment_tenure.company ?x0 .
M3 ns:people.person.employment_history/ns:business.employment_tenure.company M4 .
M5 ns:people.person.employment_history/ns:business.employment_tenure.company ?x0 .
M5 ns:people.person.employment_history/ns:business.employment_tenure.company M4
}