Did a film producer 's spouse marry M0 and marry M1 's founder
SELECT count(*) WHERE {
?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 ?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 ?x2 .
?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 M0 .
?x1 ns:organization.organization_founder.organizations_founded M1 .
?x2 a ns:film.producer .
FILTER ( ?x0 != ?x1 ) .
FILTER ( ?x0 != ?x2 ) .
FILTER ( ?x0 != M0 )
}