question: Was M2 directed by and produced by a actor that executive produced , produced , and wrote M1
query: SELECT count(*) WHERE {
  ?x0 a ns:film.actor .
  ?x0 ns:film.producer.films_executive_produced M1 .
  ?x0 ns:film.producer.film|ns:film.production_company.films M1 .
  ?x0 ns:film.writer.film M1 .
  M2 ns:film.film.directed_by ?x0 .
  M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0
  }