Did a female person whose employer was acquired by M3 and acquired M4 marry M2
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 .
?x0 ns:people.person.gender ns:m.02zsn .
?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M2 .
?x1 ns:organization.organization.acquired_by/ns:business.acquisition.acquiring_company M3 .
?x1 ns:organization.organization.companies_acquired/ns:business.acquisition.company_acquired M4 .
FILTER ( ?x0 != M2 )
}