question: Were M2 , M4 , and M5 written by a screenwriter that M1 was executive produced by and written by M3
query: SELECT count(*) WHERE {
  ?x0 a ns:film.writer .
  ?x0 ns:film.producer.films_executive_produced M1 .
  M2 ns:film.film.written_by ?x0 .
  M2 ns:film.film.written_by M3 .
  M4 ns:film.film.written_by ?x0 .
  M4 ns:film.film.written_by M3 .
  M5 ns:film.film.written_by ?x0 .
  M5 ns:film.film.written_by M3
  }