question: Was M1 executive produced by a person 's spouse , written by M2 , and written by M3 , M4 , and M5
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 ?x1 .
  ?x1 a ns:people.person .
  FILTER ( ?x0 != ?x1 ) .
  M1 ns:film.film.executive_produced_by ?x0 .
  M1 ns:film.film.written_by M2 .
  M1 ns:film.film.written_by M3 .
  M1 ns:film.film.written_by M4 .
  M1 ns:film.film.written_by M5
  }