question: Was M2 a screenwriter whose spouse executive produced M1 's prequel and executive produced M0
query: SELECT count(*) WHERE {
  ?x0 ns:film.producer.films_executive_produced ?x1 .
  ?x0 ns:film.producer.films_executive_produced M0 .
  ?x1 ns:film.film.sequel M1 .
  FILTER ( M2 != ?x0 ) .
  M2 a ns:film.writer .
  M2 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x0
  }