Were M1 and M3 produced by a character 's parent 's spouse and distributed by M2
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 .
?x1 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x2 .
?x2 a ns:fictional_universe.fictional_character .
FILTER ( ?x0 != ?x1 ) .
M1 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M2 .
M1 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M3 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M2 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}