Was M3 a production company whose female employee and founder married M1 and married M2
SELECT count(*) WHERE {
?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 M1 .
?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 .
FILTER ( ?x0 != M1 ) .
FILTER ( ?x0 != M2 ) .
M3 a ns:film.production_company .
M3 ns:business.employer.employees/ns:business.employment_tenure.person ?x0 .
M3 ns:organization.organization.founders ?x0
}