Were M3 and M5 executive produced by M1 's American spouse , produced by M4 , and edited by a film producer
SELECT count(*) WHERE {
?x0 ns:people.person.nationality ns:m.09c7w0 .
?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 .
?x1 a ns:film.producer .
FILTER ( ?x0 != M1 ) .
M3 ns:film.film.edited_by ?x1 .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M5 ns:film.film.edited_by ?x1 .
M5 ns:film.film.executive_produced_by ?x0 .
M5 ns:film.film.produced_by|ns:film.film.production_companies M4
}