Was M2 acquired by M3 , acquired by M4 and M5 , and acquired by a female person 's employer
SELECT count(*) WHERE {
?x0 ns:business.employer.employees/ns:business.employment_tenure.person ?x1 .
?x1 a ns:people.person .
?x1 ns:people.person.gender ns:m.02zsn .
M2 ns:organization.organization.acquired_by/ns:business.acquisition.acquiring_company ?x0 .
M2 ns:organization.organization.acquired_by/ns:business.acquisition.acquiring_company M3 .
M2 ns:organization.organization.acquired_by/ns:business.acquisition.acquiring_company M4 .
M2 ns:organization.organization.acquired_by/ns:business.acquisition.acquiring_company M5
}