Were M3 , M4 , and M5 employed by a company that employed a spouse of M2 and employed M1
SELECT count(*) WHERE {
?x0 a ns:business.employer .
?x0 ns:business.employer.employees/ns:business.employment_tenure.person ?x1 .
?x0 ns:business.employer.employees/ns:business.employment_tenure.person M1 .
?x1 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 .
FILTER ( ?x1 != M2 ) .
M3 ns:people.person.employment_history/ns:business.employment_tenure.company ?x0 .
M4 ns:people.person.employment_history/ns:business.employment_tenure.company ?x0 .
M5 ns:people.person.employment_history/ns:business.employment_tenure.company ?x0
}