Was M2 edited by a film producer 's spouse 's parent , written by M3 , and executive produced by a actor
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x1 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x2 .
?x2 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x3 .
?x3 a ns:film.producer .
FILTER ( ?x2 != ?x3 ) .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.written_by M3
}