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