Were M3 and M4 produced by a spouse of M1 , executive produced by a film editor , and directed by M2 's producer
SELECT count(*) WHERE {
?x0 a ns:film.editor .
?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 .
?x2 ns:film.producer.film|ns:film.production_company.films M2 .
FILTER ( ?x1 != M1 ) .
M3 ns:film.film.directed_by ?x2 .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M4 ns:film.film.directed_by ?x2 .
M4 ns:film.film.executive_produced_by ?x0 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x1
}