question: Were M2 , M3 , M4 , M5 , and M6 written by a actor and executive produced by a film director
query: SELECT count(*) WHERE {
  ?x0 a ns:film.director .
  ?x1 a ns:film.actor .
  M2 ns:film.film.executive_produced_by ?x0 .
  M2 ns:film.film.written_by ?x1 .
  M3 ns:film.film.executive_produced_by ?x0 .
  M3 ns:film.film.written_by ?x1 .
  M4 ns:film.film.executive_produced_by ?x0 .
  M4 ns:film.film.written_by ?x1 .
  M5 ns:film.film.executive_produced_by ?x0 .
  M5 ns:film.film.written_by ?x1 .
  M6 ns:film.film.executive_produced_by ?x0 .
  M6 ns:film.film.written_by ?x1
  }