Did a film producer whose employer was acquired by M2 , acquired M3 , and acquired M4 marry M1
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 .
?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 M1 .
?x1 ns:organization.organization.acquired_by/ns:business.acquisition.acquiring_company M2 .
?x1 ns:organization.organization.companies_acquired/ns:business.acquisition.company_acquired M3 .
?x1 ns:organization.organization.companies_acquired/ns:business.acquisition.company_acquired M4 .
FILTER ( ?x0 != M1 )
}