Were M2 and M5 directed by M3 and M4 , edited by M1 's spouse , and written by a child of M0
SELECT count(*) WHERE {
?x0 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent M0 .
?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 M1 .
FILTER ( ?x1 != M1 ) .
M2 ns:film.film.directed_by M3 .
M2 ns:film.film.directed_by M4 .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.written_by ?x0 .
M5 ns:film.film.directed_by M3 .
M5 ns:film.film.directed_by M4 .
M5 ns:film.film.edited_by ?x1 .
M5 ns:film.film.written_by ?x0
}