question: Were M3 and M4 edited by a film director , executive produced by a spouse of M0 , and produced by a screenwriter
query: 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 M0 .
  ?x1 a ns:film.writer .
  ?x2 a ns:film.director .
  FILTER ( ?x0 != M0 ) .
  M3 ns:film.film.edited_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.edited_by ?x2 .
  M4 ns:film.film.executive_produced_by ?x0 .
  M4 ns:film.film.produced_by|ns:film.film.production_companies ?x1
  }