question: Did a person that M7 married write M1 and M2 and executive produce M3 , M4 , M5 , and M6
query: SELECT count(*) WHERE {
  ?x0 a ns:people.person .
  ?x0 ns:film.producer.films_executive_produced M3 .
  ?x0 ns:film.producer.films_executive_produced M4 .
  ?x0 ns:film.producer.films_executive_produced M5 .
  ?x0 ns:film.producer.films_executive_produced M6 .
  ?x0 ns:film.writer.film M1 .
  ?x0 ns:film.writer.film M2 .
  ?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 M7 .
  FILTER ( ?x0 != M7 )
  }